[Gtk-sharp-list] Ref handling patch

Mike Kestner mkestner@speakeasy.net
Thu, 24 Jul 2003 12:10:46 -0500


On Thu, 2003-07-24 at 11:07, Gonzalo Paniagua Javier wrote:

> In gnunit, I get an unhandled exception when it finishes running the
> tests and then, inside the unhandled exception handled i get another
> one. I've tried to fix this but had no luck... yet!

One suggestion is to put a Console.WriteLine in
GLib.Object.PerformQueuedUnrefs by the g_object_unref call to see which
object type is having the ref issues.  You can also put similar debug
spew in Raw and GetObject to determine if we are taking refs, and even
what the overall ref count of the object is. Ettore and I used these
kind of debug statements to track down the problems in the samples and
his app.
  
-- 
Mike Kestner <mkestner@speakeasy.net>