Delphi Service Application crashing after several hours (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Gloegg, (3922 days ago) @ Jasmine

when you say app doesn't continue - what exactly happens in your code after the exception? Do you reconnect?

After the exception is logged to a textfile the procedure is finished.
There is a TTimer that runs every couple of seconds and checks if the time since the last connect is greater than 15 minutes, which then calls the procedure.
[code]procedure TdmTransfer.tiCheckTimer(Sender: TObject);
var
dt: TDateTime;
begin
dt := Now;
if MinuteSpan(fLastCheck, dt) >= 15 then
begin
fLastCheck := dt;
CheckServerForNewFiles;
end;
end;[/code]

Did you try to take new instance of wodSFTP and re-try with it?

No, I use the same instance of wodSFTP through the entire life time of the program.
I'll check this out and let you know if this works

locked

Complete thread: