Fatal memory error
- Posted by alrobnett Jan 28, 2019
- 1486 views
Since replacing my HDD's with SSD's I tend to leave my computer running without restarting for days at a time. The program that I am working on opens and reads in three files, each 6MB in size. I have usually exited the program through a programed "abort(0)" procedure, but there have been times when I used Ctrl Z because i did not want the program to proceed with what it was doing. Today I got:
"Fatal runtime error: Your program has run out of memory. One moment please"
After a very long pause, control was returned, but everything behaved extremely sluggishly. I conclude that files were left open, with large buffers still assigned. I have three questions:
1. Does abort(0) close all open files, returning buffer space to available memory?
2. Does Ctrl Z do likewise?
3. Does restarting the system take care of loose ends?