Re: out of memory, even tho remembered nothing!
- Posted by useless_ Oct 18, 2012
- 1534 views
I had declared junk as an object in my code! I default to object a lot actually, just to avoid typecasting errors. It read past the end of file again.
With respect, may I suggest that you are not running the program code you think you're running.
How about updating the code you think you are running with a special message to identifiy it, and if it is still failing, post the entire code here for someone else to reproduce your issue.
Yes, i was just getting to that, as it did it again. Going to take some runtime, it's a big file. Praps it's a big-file issue.
Ok, hours later .......
I took a screen shot of the app still running:
http://designerthinking.com/FT-ERROR.JPG
As i am typing this, it's 1.5 Gbytes past the end of file.
The source code is at:
http://openeuphoria.org/pastey/161.wc
Note:
object junk, readfile
This runs properly:
while not equal(-1,junk) do
This does NOT detect EOF:
while sequence(junk) do
useless