|
Post by drfloyd on Jul 6, 2019 9:18:06 GMT -6
Hello if a do : dim essai[10] essai[121]=3 there is no error message... why ? And there are strange random bugs... linked to this problem sometimes my program become crazy with no reason (data & pictures are replace by others !).. the shoot become the rocket, the rocket become the alien... it'scrazy , never seen that... looks like data are mixed somtimes when I compile the program is ok, sometimes it crash ( with exactly the same code) What's happen ? memory problems ?? Please note that i have not yet downloaded your last version...
|
|
|
Post by n00b on Jul 6, 2019 9:42:37 GMT -6
You did find a bug with the compiler not reporting an error when you don't close a loop and I will get that fixed. For the time being just make sure you close your loops and you should be fine on that.
The issue with DIM is not a bug. Your issue with DIM is something that you as a programmer have to be careful with. As long as your syntax is correct, RCBasic will compile it. It is up to you to prevent memory leaks in your code.
|
|
|
Post by drfloyd on Jul 6, 2019 10:31:35 GMT -6
The DIMs where not in a loop, but at the beginning of the program. So it is the reason ?
|
|