[Gtk-sharp-list] PanelApplet issue

Mike Kestner mkestner at novell.com
Thu Jul 27 16:43:14 EDT 2006


On Thu, 2006-07-27 at 22:22 +0200, Tobias Schlitt wrote:
> On 07/27/2006 09:45 PM Mike Kestner wrote:
> > On Thu, 2006-07-27 at 11:30 +0200, Tobias Schlitt wrote:
> 
> >> I'm quite new to Mono, so please forgive me stupid errors. Thanks!
> 
> >> My Problem relates to the PanelApplet class which I am using to write
> >> some Gnome panel applets. So far it works quite well, but on certain
> >> actions the applet crashes with a stack trace and I don't really have an
> >> approach to search for the reason.
> 
> > I'm wondering if the delegates are getting GC'd.  It doesn't look like
> > we are holding a ref to the BonoboUIVerb[] or anything so that the
> > delegates would stay alive.
> 
> > What happens if you hold a ref to the BonoboUIVerb[] that you pass to
> > SetupMenu ()?
> 
> Hey, thanks, that was the issue. The reason sounds quite logical, but
> after thinking about it, it was a real newbe question.

It's still a bug.  Gtk# should take care of that for you.  The only
question now is how best to hold those references.  We don't bind any
way to remove menu items.  We can probably just hold them until the
PanelApplet is destroyed.

-- 
Mike Kestner <mkestner at novell.com>



More information about the Gtk-sharp-list mailing list