Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-07

exception handling

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Vincent Snijders: Recently exception handling was added to a standard lcl application. Instead of a message…
Show quoted text 19 lines
On Mon, 28 Jul 2003 19:43:17 +0200 Vincent Snijders 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.

I ment
"before Application.Initialize OR Application.Run"

Mattias

Mattias Gaertner
to Vincent Snijders: Recently exception handling was added to a standard lcl application. Instead of a message…
Show quoted text 12 lines
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

Vincent Snijders
to Vincent Snijders: Recently exception handling was added to a standard lcl application. Instead of a message…
Show quoted text 21 lines
On Mon, 28 Jul 2003 20:12:26 +0200 Mattias Gaertner wrote: > On Mon, 28 Jul 2003 19:43:17 +0200 > Vincent Snijders 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.

Show quoted text 5 lines
> > 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.

Vincent Snijders

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?

Regards,
Vincent Snijders.