[Gtk-sharp-list] Re: Gtk# refcount problem
Mike Kestner
mkestner@speakeasy.net
15 Sep 2002 22:14:37 -0500
Hi Martin,
On Sun, 2002-09-15 at 10:01, Martin Baulig wrote:
> there's a problem with the new refcounting code in gtk#:
Can you describe how you are triggering the problem?
> Currently, ObjectManager.CreateObject() may create several managed GLib.Object's for the
> same underlying GObject. Since the GLib.Object's calls g_object_unref() when it's
> disposed, CreateObject() must g_object_ref() the GObject.
The ObjectManager should only called through GLib.Object.GetObject,
which checks to see if a wrapper has been created already and returns a
ref to that object instead of creating a new wrapper through the
ObjectManager.
So I don't believe the patch is correct.
--
Mike Kestner <mkestner@speakeasy.net>