
30 Apr
2006
30 Apr
'06
5:39 p.m.
You wrote
I've just added another debugging category to the debug logging code, so now object finalization is reported in the log. ... Open some documents, close them, and before closing the last one, go to the "About Memory" dialog and click "recalculate" a few times to make sure that a garbage collection pass gets run.
Then look at debug.xml. You can see not only when the finalization of an object happened, but also what debugging events (in this case refs/unrefs) happened during its finalizer.
This begs the question if it's possible to turn on logging before startup. If possible one could then find leaks by ref/unref comparison using a script on the xml.
ralf