#123 closed defect (fixed)
More than 2 empty lines at the end of BDT -> infinite loop
Reported by: | request | Owned by: | manuelb |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Various | Version: | head |
Severity: | blocker | Keywords: | |
Cc: |
Description
More than 2 empty lines at the end of BDT -> infinite loop
Empty lines in windows lasttext<CR><LF><CR><LF><EOF>
Set inc = Include("error200408-123.bdt");
WriteLn("SumS = "+FormatReal(SumS(value),"%.2lf"));
/* If the file error200408-123.bdt has more than 2 empty
lines at end this program never end, for example:
<error200408-123.bdt>
C ;value;
2004/01/12; 200;
2004/08/09; 250;
<end of file>
if the file is in the following format works
<error200408-123.bdt>
C ;value;
2004/01/12; 200;
2004/08/09; 250;
<end of file>
*/
Change History (5)
comment:1 Changed 20 years ago by
Owner: | changed from danirus to manuelb |
---|
comment:2 Changed 20 years ago by
Status: | new → assigned |
---|
comment:3 Changed 20 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000123 |
---|
Fixed! A classic career condition on a first-main loop made TOL believe the BDT file
would end ALLWAYS when finding an empty line.
Now you can include as many empty lines as you want at the end of the file or not.
They will be all skiped.
The fix is avaliable on the cvs.