Forum
PRINT in FUNCTION causes Crash (*solved*) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: PRINT in FUNCTION causes Crash (*solved*) (/showthread.php?tid=290)



PRINT in FUNCTION causes Crash (*solved*) - LCD - 11-27-2010

Hi Boriel, In my latest game using PRINT in a FUNCTION causes Crash. If I REM out it, it works. Two builds before it was working perfectly, so maybe a reintroduced bug?
I'm sending you the complete source via PM.


Re: PRINT in FUNCTION causes Crash - boriel - 11-27-2010

I can't reproduce de bug in normal mode (with -O3 it hangs).
Which version are you using?
Latest is: 1.2.6-r1713


Re: PRINT in FUNCTION causes Crash - LCD - 11-27-2010

boriel Wrote:I can't reproduce de bug in normal mode (with -O3 it hangs).
Which version are you using?
Latest is: 1.2.6-r1713
I use the latest version.
In normal mode the clock sometimes stops, or the game crashes after few minutes of playing, but I confirm: it did not happen allways, only rarely (not in the last two games I played). -O2 is not affected btw.


Re: PRINT in FUNCTION causes Crash - boriel - 11-28-2010

Ok, seems it was a -O3 bug. Please download latest version 1.2.6-r1735 and tell me if it works! (it did to me). :roll:


Re: PRINT in FUNCTION causes Crash - LCD - 11-28-2010

You rule! Thanks for the fast fixing, it works now. Just tested it... The crash of not optimised code can have different causes...
Anyway, thread can be closed.