This is the code that is raising the error:
lbIndexOpen := False;
while not lbIndexOpen do
begin
try
if FileExists(FileName) then
fStream := TFileStream.Create(FileName, fmOpenReadWrite)
else
fStream := TFileStream.Create(FileName, fmCreate);
lbIndexOpen := True;
except
on e: Exception do
begin
WriteLn(E.Message);
Sleep(500);
end;
end;
end;
ASKER
ASKER
Pascal is an influential imperative and procedural programming language, largely (but not exclusively) intended to teach students structured programming and data structuring. Pasca was implemented on a wide range of architectures, from early PCs to mainframes. Pascal derivatives include OOP-based Object Pascal (used in Delphi and Lazarus/Free Pascal). Pascal is a purely procedural language and includes control statements with reserved words, but has many data structuring facilities and other abstractions like type definitions, records, pointers, enumerations, and sets.
TRUSTED BY
ASKER
I accept your comments about the problem perhaps being elsewhere ... where would you look. When the program breaks, it does not get out of the above loop so I get the error message every 500 ms
Thanks