Delphi Service Application crashing after several hours (wodSFTP / wodSFTP.NET / wodSFTPdll)
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:
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-05, 20:20
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-05, 23:21
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-06, 09:31
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-06, 12:48
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-06, 13:30
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-06, 19:55
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-07, 14:06
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-07, 19:26
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-11, 20:31
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-12, 09:45
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-12, 10:08
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-12, 09:45
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-11, 20:31
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-07, 19:26
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-07, 14:06
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-06, 19:55
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-06, 13:30
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-06, 12:48
- Delphi Service Application crashing after several hours - Gloegg, 2014-08-06, 09:31
- Delphi Service Application crashing after several hours - wodSupport, 2014-08-05, 23:21