[lazarus] exception handling

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jul 28 13:33:46 EDT 2003


On Mon, 28 Jul 2003 19:43:17 +0200
Vincent Snijders <vslist at zonnet.nl> wrote:

> Hi,
> 
> Recently exception handling was added to a standard lcl application. 
> Instead of a message box with the exception message, while debugging, 
> I'd rather have a error location and traceback like this:
> 
> An unhandled exception occurred at 0x0807682B :
> EDIVBYZERO : Division by zero
>   0x0807682B  main,  line 13 of
> /home/vsds/lazarus/projects/debugtest/debugtest.pas  0x080480B0
> 
> Do you know how I can achieve this in i.e. an example program?

Application.CatchExceptions:=false;

Do this before Application.Initialize of Application.Run.


Mattias






More information about the Lazarus mailing list