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.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to