Infinite Loop
-
While trying to find a possible infinite loop, I added the second line below:
while true do begin **Reset(CurrFile);** ReadLn(CurrFile,Pierce);
The break statement to exit the while loop depends on making it to a specific line in the file. Since I already read some lines before this, I thought just in case the line I was waiting for was above them, I would reset the file. After debugging this a few times, I realized that I was an idiot, and I moved the reset to just before the while... :sigh:
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
-
While trying to find a possible infinite loop, I added the second line below:
while true do begin **Reset(CurrFile);** ReadLn(CurrFile,Pierce);
The break statement to exit the while loop depends on making it to a specific line in the file. Since I already read some lines before this, I thought just in case the line I was waiting for was above them, I would reset the file. After debugging this a few times, I realized that I was an idiot, and I moved the reset to just before the while... :sigh:
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
I'm sure I've done that one. More than once. Hangs head in shame...
Software Zen:
delete this;