I created a fairly complex game that heavily utilities if and lbl/goto statements. It executes for a few minutes then gives the Err: Memory and quits. To fix this I tried making the main thing that the program repeatedly did its own program and instead of goto start I executed the program and this did not work. Is there anything I command I can put at the beginning of the program that will clear whatever memory is overflowing. I can clear anything except my variables. Thanks.
First of all, welcome to the community!
Second of all, show us the code please?
:ClrHome:Disp "HOW DOES A","MATHEMATICIAN","LOSE WEIGHT? :Pause " :Pause "BINOMIALS! :Pause "(BUY NO MEALS)":ClrHome
Uploading the code would be a huge help. I suggest uploading the program to your computer, then using TokenIDE to copy and paste the code to here or pastebin.com to reduce on spam/scrolling in the thread.
Most likely though, you ARE experiencing memory leaks via the Goto commands in your program. A common cause is leaping out of If-Then statements. Don't worry, we've all been at that stage at one point, so you're not alone. It just takes some time converting from the Goto/Lbl mentality to loops like Repeat, While, and For(. I highly suggest reading up on them here, as they're incredibly informative and very easy to understand. Also the Controlling Program Flow page also is very good at easing the transition between the two.