QuickBasic program memory leak.

G

Guest

Guest
The OS I'm making in quickbasic accesses a different file with the SHELL command when you press a specific key. After a while of doing this, it runs out of memory and the PC crashes.
Is there any command that'll let me exit to a file?
 
Solution
The clear command closes all files and erases all varibles. You may want to keep the varibles by using the close command instead. Close just closes a file you opened to write, append, or read from.