Re: silent sftp (General questions)
I have now overridden the Application objects OnHandleException event procedure.
It seems that the exception is caught here before it comes all the way out to the calling point.
Do you at any point in your code call the Abort() procedure, or in any other way excecute the Application.OnHandleException()?
- Haarek -
I've have tons of other exception handling code in my application that the Delphi debugger leaves alone. Are you sure there is not a seperate thread in your component?
FDone := false;
try
FSFTP.PutData(Stream.DataString,'./'+path);
if not FDone then
raise Exception.Create('PutStream failed ');
except on e:exception do
raise exception.Create('Putstream failed due to external exception ');
end;
I've tried running the unittest application (DUnit framework) both in the debugger and on the outside as a standalone .exe-file. The exception handling code (raise exception.Create('putstr...) is not reached before I OK the exception dialog presented.
Is it possible that COM-exceptions are handled in a special manner?
- Haarek -
[/quote]
Complete thread:
- silent sftp - Haarek Ryeng, 2004-11-05, 14:22
- Re: silent sftp - wodSupport, 2004-11-05, 15:03
- Re: silent sftp - Haarek Ryeng, 2004-11-05, 16:14
- Re: silent sftp - wodSupport, 2004-11-05, 16:23
- Re: silent sftp - wodSupport, 2004-11-05, 16:28
- Re: silent sftp - Joachim, 2004-11-07, 22:14
- Re: silent sftp - Haarek Ryeng, 2004-11-08, 10:00
- Re: silent sftp - Haarek Ryeng, 2004-11-08, 10:33
- Re: silent sftp - Haarek Ryeng, 2004-11-08, 11:07
- Re: silent sftp - wodSupport, 2004-11-08, 11:36
- Re: silent sftp - Haarek Ryeng, 2004-11-08, 11:07
- Re: silent sftp - Haarek Ryeng, 2004-11-08, 10:33
- Re: silent sftp - Haarek Ryeng, 2004-11-08, 10:00
- Re: silent sftp - Joachim, 2004-11-07, 22:14
- Re: silent sftp - wodSupport, 2004-11-05, 16:28
- Re: silent sftp - wodSupport, 2004-11-05, 16:23
- Re: silent sftp - Haarek Ryeng, 2004-11-05, 16:14
- Re: silent sftp - wodSupport, 2004-11-05, 15:03