Delphi Service Application crashing after several hours - WeOnlyDo Discussion board

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

by Gloegg, Wednesday, August 06, 2014, 13:30 (3763 days ago) @ wodSupport

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.

procedure TdmTransfer.tiCheckTimer(Sender: TObject);
var
  dt: TDateTime;
begin
  dt := Now;
  if MinuteSpan(fLastCheck, dt) >= 15 then
  begin
    fLastCheck := dt;
    CheckServerForNewFiles;
  end;
end;

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


Complete thread: