nigeldutton
Programmer
This is the code I am running
if FileExists(ImageToLoad) then begin
JPG := TJpegImage.Create;
try
JPG.LoadFromFile(ImageToLoad);
Draw(X,Y,JPG);
finally
JPG.Free;
end; //try
end; //if FileExists
The ImageToLoad string is a network path to a busy server where the photos are stored.
Often images that I know exist are not printed or are missing from the view screen. FileExists is returning false.
I think that this is because occasionally the server is very busy and the FileExist function is timing out and returning false.
What I need to know - is there a way to increase the default time out for FileExists?
if FileExists(ImageToLoad) then begin
JPG := TJpegImage.Create;
try
JPG.LoadFromFile(ImageToLoad);
Draw(X,Y,JPG);
finally
JPG.Free;
end; //try
end; //if FileExists
The ImageToLoad string is a network path to a busy server where the photos are stored.
Often images that I know exist are not printed or are missing from the view screen. FileExists is returning false.
I think that this is because occasionally the server is very busy and the FileExist function is timing out and returning false.
What I need to know - is there a way to increase the default time out for FileExists?