close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#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 manuelb

Owner: changed from danirus to manuelb

comment:2 Changed 20 years ago by manuelb

Status: newassigned

comment:3 Changed 20 years ago by manuelb

Resolution: fixed
Status: assignedclosed

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.

comment:4 Changed 18 years ago by Víctor de Buen Remiro

A new test tol_tests/tol/Bugzilla/bug_000123 has been added

comment:5 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000123
Note: See TracTickets for help on using tickets.