[fpc-devel] crash report for constructor may point to destructor
jonas.maebe at elis.ugent.be
Wed Nov 10 12:04:17 CET 2010
On 10 Nov 2010, at 12:00, Martin wrote:
> But if the destructor (e.g Destroy) also crashes, then if you have -
> gl it will dump the stack for the destructor.
> The stack for the constructor is never dumped at all.
That's because backtraces are only dumped when an exception is not
caught. Otherwise you'd probably see a lot backtrace being printed
during an average Lazarus run.
> Is there a way to make it dump the constructor crash as well (maybe
> before calling destroy)?
By adding your own try/except code and manually dumping the backtrace.
More information about the fpc-devel