
8 Sep
2004
8 Sep
'04
1:34 a.m.
On Tue, 2004-09-07 at 21:18, MenTaLguY wrote:
- I screwed up the definition of Inkscape::GC::Finalized, and it's not
using the right value for 'this' when calling the destructor.
In this case, introducing sigc++ signals to SPReprDoc (derived from Inkscape::GC::Finalized) could well result in heap corruption when the object was destroyed, since the signal destructors try to free memory and their internal pointers would be wrong.
This one doesn't appear to be the problem; I set breakpoints on Inkscape::GC::Finalized::~Finalized() and SPReprDoc::~SPReprDoc(); the crash apparently occurs before either has been called.
(which I should have known; finalized garbage collected objects aren't destroyed until the idle loop)
-mental