Sign in Join

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

Mailing lists / fpc-pascal / 2024-04

class constructor exception

3 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

Hi,

When an exception is raised in a class constructor the application aborts without any error.

How can I get an error?

Mattias

Reply by email

Andrey Zubarev
to Mattias Gaertner

Hi,

Set ExceptProc to your handler in unit initialization section in unit usesed before the problematic one?

On Tue, Apr 23, 2024 at 12:20 AM Mattias Gaertner via fpc-pascal <

Show quoted text 14 lines
wrote: Hi, When an exception is raised in a class constructor the application aborts without any error. How can I get an error? Mattias _______________________________________________ fpc-pascal maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email

Mattias Gaertner
to Andrey Zubarev
Andrey Zubarev wrote
Hi, Set ExceptProc to your handler in unit initialization section in unit usesed before the problematic one?

It is set by lcl TApplication.

Just found out: It works with other exceptions, but not with EAbort. And that indeed creates a silent exception.

I will talk to the lib developers...

Mattias

Reply by email