Here's another QTrans debug.
I have added some more messages between lines 18232 and 18362 to see how far it gets.
I suspect the problem may be in procFun 13990, as that displays the file. Which does not happen.
And there are some FOR loops in there.
Code: Select all
18232 PRINT "at 18232 window drawn": PAUSE -1 : REMark OK to here
18240 Q_ERR_ON "open_in" : OPEN_IN #3,called$
18242 PRINT "DB2 at 18242 channel opened": PAUSE -1
18250 var0668 = Q_ERR : Q_ERR_OFF "open_in"
18252 PRINT "DB2 at 18252 var0668 = ";var0668 : PAUSE -1
18260 IF (var0668 < 0) THEN procFun6900 var0668 : RETurn var0668 : END IF
18270 :
18280 fl = FLEN (#3)
18282 PRINT "DB2 at 18282 file length is ";fl : PAUSE -1
18290 :
18300 :
18302 PRINT "DB2 at 18302 about to MWINDOW #2,1 : WM_PAPER #2,";HEX ("0217")!!!"WM_INK #2,";HEX ("0218") : PAUSE -1
18310 MWINDOW #2,1 : WM_PAPER #2,HEX ("0217") : WM_INK #2,HEX ("0218") : CLS #2
18320 DIM lines$(var06F0%,var06F8%)
18330 DIM line_ptr(var06F0%) : line_ptr(0) = 0
18332 PRINT "DB2 at 18332 arrays DIMed, calling procFun13990": PAUSE -1
18340 procFun13990
18342 PRINT "DB2 at 18342 calling procFun13820": PAUSE -1
18345 procFun13820
18350 :
18360 :
18362 PRINT "at 18362 starting loop": PAUSE -1 : REMark Not OK here
Code: Select all
13990 DEFine PROCedure procFun13990
14000 LOCal a , b , var0758
14010 WM_INK #2,HEX ("0218")
14012 PRINT "DB2 in procFun13990, var06F0% = ";var06F0%
14014 PRINT "DB2 at 14014 FOR a = 0 TO (var06F0% - 1) var06F0% = ";var06F0% : PAUSE -1
14020 FOR a = 0 TO (var06F0% - 1)
14030 BGET #3\line_ptr(a)
14032 PRINT "DB2 at 14032 FOR b = line_ptr(a) TO (fl - 1) ";line_ptr(a)!!!(fl - 1) : PAUSE -1
14040 FOR b = line_ptr(a) TO (fl - 1)
14050 BGET #3,byte%
14060 IF NOT ((byte% = 10)) THEN
14070 lines$(a) = lines$(a) & CHR$(byte%)
14080 ELSE
14090 :
14100 line_ptr((a + 1)) = FPOS (#3)
14110 GO TO 14170
14120 END IF
14130 NEXT b
14140 :
14150 line_ptr((a + 1)) = fl
14160 END FOR b
14170 AT #2,a,0 : PRINT #2,lines$(a);
14172 PRINT "DB2 at 14172 end of line reached" :PAUSE -1
14180 IF (FPOS (#3) >= fl) THEN
14190 FOR var0758 = (a + 1) TO (var06F0% - 1) : line_ptr((var0758 + 1)) = fl : END FOR var0758
14200 EXIT a
14210 END IF
14220 END FOR a
14222 PRINT "DB2 at 14222 exiting procFun" :PAUSE -1
14230 :
14240 :
14250 END DEFine procFun13990