PDA

View Full Version : raise an exception


Marco
09-Jun-2006, 04:02 PM
Hi,
in my application I need to raise an exception and then terminate the
application, but I want eurekalog to store the exception in the log file.
So I do something like this:
(Windows XP, Delphi 5)

.....
try
raise exception.create('Some message');
finally
Application.Terminate;
Halt(1)
end;
......
With ths code the exception is raised and the application is terminated
but the eureka log file is not written. How can I terminate the
application in the same procedure and have the eureka log file written ?

Thanks.

admin
20-Jun-2006, 12:15 PM
Hi,

Marco wrote:
> Hi,
> in my application I need to raise an exception and then terminate the
> application, but I want eurekalog to store the exception in the log file.
> So I do something like this:
> (Windows XP, Delphi 5)
>
> ....
> try
> raise exception.create('Some message');
> finally
> Application.Terminate;
> Halt(1)
> end;
> .....
> With ths code the exception is raised and the application is terminated
> but the eureka log file is not written. How can I terminate the
> application in the same procedure and have the eureka log file written ?
>
> Thanks.

I have just answered to you in the following thread:
http://news.eurekalog.com/showthread.php?t=359

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!