Question Infinite loop issue

Hi,

I have tow progress environment. If I run the below code in one session of Progress editor it work fine as expected with out an infinite loop. However in other environment it ends up in a infinite loop. Any one can help me What causing this infinite loop? Is there any start up parametr?

DEF VAR vcnt1 AS INT .
DEF VAR vCnt2 AS INT.
DEF TEMP-TABLE temp-item
FIELD item-no AS CHAR
FIELD itmcnt AS INT.

FOR EACH item:
CREATE temp-item.
temp-item. = item.item-no.
vcnt1 =vCnt1 +1.
END.
DISP cnt1.
FOR EACH temp-item:
vCnt2 = vCnt2 + 1.
temp-item.itmcnt = vCnt2.
DISP temp-item.itmcnt.
PAUSE 0.
END.

TIA
Philip
 

GregTomkins

Active Member
Guess #1: you are missing a field name after 'temp-item' in the line temp-item. = item.item-no.
Guess #2: different Progress versions.
Guess #3: you are mistaken.

'Infinite loop' generally means there is actual processing happening to infinity; are you sure it's not just waiting for a spacebar or something like that?
 

4GLNewbie

Member
Infinite is a time like ..? Ten minutes? Half an hour? One day? More?
The two environements have two distinct databases or they just run on the same data?
 
Top