[Lazarus] How to use ExceptProc and application.CaptureExceptions

Bogusław Brandys brandys at o2.pl
Fri Feb 19 19:21:19 CET 2010


Flávio Etrusco pisze:
> 2010/2/17 Bogusław Brandys <brandys at o2.pl>:
>> Alexander Grau pisze:
>>> I'm answering my own question since I got it solved now by setting an
>>> ExceptionHandler using Application.AddOnExceptionHandler:
>>>
>>>   application.AddOnExceptionHandler(@MyExceptionHandler);
>>>
>>> This will capture exceptions, however a stack trace with line numbers
>>> won't work yet because the default handler is still called and will output a
>>> stack trace with line info, but the 'lineinfo' procedure cannot generate a
>>> 2nd, 3rd etc. stack trace with line info (for some unknown reason).
>>>
>>
>> Bug in lineinfo processing. I posted a patch long time ago but it seems
>> nobody is interested.Now it would require also to fix dwarf lineinfo.
>>
>> Boguslaw
>>
> 
> Is there a mantis entry for this? If not please create it or send the
> patch again (so I create it).
> Many thanks.
> 
> -Flávio
> 

http://bugs.freepascal.org/view.php?id=13518


It maybe now obsolete though.I'm not conversant with current svn changes.

Boguslaw






More information about the Lazarus mailing list