[fpc-devel] crash report for constructor may point to destructor

Martin lazarus at mfriebe.de
Wed Nov 10 12:00:23 CET 2010


If a constructor crashes, the the object that it was constructing will 
be destroyed. (fpc inserts an exception frame to ensure that).

So far so good, all correct.

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.

Is there a way to make it dump the constructor crash as well (maybe 
before calling destroy)?

fpc trunk (yesterday) / -gl -gw / w32

Martin



More information about the fpc-devel mailing list