Today start wrapping Blitz3d SDK for my little game project and found some bug.
Then i run script i have strange error, output:
Main script name: C:\Program Files\thinBasic\My Project\b3d sdk\sample.tbasic
Error code: 30
Error description: Variable not defined or misspelled Keyword
Line number: 14.9999997646012
Line code: MESH = CREATECUBE(0)
Token found: CREATECUBE
BUT then i run script in DEBUG mode all working fine.
those kind of errors usually occurs when there is some memory corruption due to incorrect stack passing parameters.
It can occurs when external function/sub library is defined incorrectly or when a parameter type is not the supposed type ... and for many other reasons related to incorrect declarations.
I think the problem is in Graphics3D execution. After the call to Graphics3D, script starts to corrupt memory