Posted by Robert G Laurin on June 05, 2014 at 14:12:32:
In Reply to: Re: Compiler Comet16 vs Comet32 posted by Barbara Brazil on June 05, 2014 at 09:37:23:
I Found the offending Line of Code.... Well... Definitely a Major BUG in C32
The line is:
CURLINE = CURLINE + WPFONTHEIGHT(CURRENT.FONT) * 1.2
This line of code changes the variable TCOUNT(3) from 380 to 286 the second time this subroutine is executed.
Here the TRACE results: (spaced out for readability)
UMP-TEST.IBS: 1265 WORK$='1263:'+STR(COPY)+STR(SUMMARY)+STR(SERVICE)+STR(TCOUNT(1))+STR(TCOUNT(2))+STR(TCOUNT(3))+STR(TSPEC(3))
UMP-TEST.IBS: 1266 TRACE PRINT WORK$
1263:1 2 3 0 4 380 380UMP-TEST.IBS: 1268 LET OUT$(1) = 'Extra Services'
UMP-TEST.IBS: 1270 WORK$='1268:'+STR(COPY)+STR(SUMMARY)+STR(SERVICE)+STR(TCOUNT(1))+STR(TCOUNT(2))+STR(TCOUNT(3))+STR(TSPEC(3))
UMP-TEST.IBS: 1271 TRACE PRINT WORK$
1268:1 2 3 0 4 380 380UMP-TEST.IBS: 1273 PRINT (LP) (DRAWTEXT=PtrX1,CURLINE,PtrX2,PAGE.BREAK,2896);OUT$(1);NullByte$
UMP-TEST.IBS: 1275 WORK$='1275:'+STR(COPY)+STR(SUMMARY)+STR(SERVICE)+STR(TCOUNT(1))+STR(TCOUNT(2))+STR(TCOUNT(3))+STR(TSPEC(3))+_
UMP-TEST.IBS: 1276 'CurLine:'+str(curline)+'CurrentFont:'+STR(Current.Font)+'WPFontHeight:'+STR(WPFONTHEIGHT(current.font))
UMP-TEST.IBS: 1277 TRACE PRINT WORK$
1275:1 2 3 0 4 380 380 CurLine:13319 CurrentFont: 1 WPFontHeight: 197UMP-TEST.IBS: 1279 CURLINE = CURLINE + WPFONTHEIGHT(CURRENT.FONT) * 1.2
UMP-TEST.IBS: 1281 WORK$='1281:'+STR(COPY)+STR(SUMMARY)+STR(SERVICE)+STR(TCOUNT(1))+STR(TCOUNT(2))+STR(TCOUNT(3))+STR(TSPEC(3))+_
UMP-TEST.IBS: 1282 'CurLine:'+str(curline)+'CurrentFont:'+STR(Current.Font)+'WPFontHeight:'+STR(WPFONTHEIGHT(current.font))
UMP-TEST.IBS: 1283 TRACE PRINT WORK$
1281:1 2 3 0 4 236 380 CurLine:13555 CurrentFont: 1 WPFontHeight: 197---------------------------^
Further down the code it is changed again from 236 to 2 and eventually to 0.
Is there a way to debug this ? Do you want the source (7000+ lines) or object? You would need a lot of data to be able to run this at your end.
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.