[lazarus] exception handling

Vincent Snijders vslist at zonnet.nl
Mon Jul 28 14:13:30 EDT 2003


On Mon, 28 Jul 2003 20:25:27 +0200
Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Mon, 28 Jul 2003 20:12:26 +0200
> Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> 
> > 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;
Thanks for guiding me in the right direction.

It is:
  Application.CaptureExceptions:=false;

This works as I wanted.

> > 
> > Do this before Application.Initialize of Application.Run.
> 
> I ment 
> "before Application.Initialize OR Application.Run"

No problem, being Dutch I read it that way.

> 
> 
> Mattias

Vincent Snijders.






More information about the Lazarus mailing list