Re: silent sftp - WeOnlyDo Discussion board

Re: silent sftp (General questions)

by Haarek Ryeng, Monday, November 08, 2004, 10:33 (7111 days ago) @ Haarek Ryeng

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: