[Mono-devel-list] Warning with Gnome.About

Harry Chesley chesley at acm.org
Sun Jul 3 11:58:06 EDT 2005


> On Fri, 2005-07-01 at 09:15 -0700, Harry Chesley wrote:
> > I use Gnome.About to display my about box. If I just open and close the
> > about box, I get four of the following warnings (with sequential
> increasing
> > ids):
> >
> > (Argeebee:5931): GLib-GObject-WARNING **: gsignal.c:1781: instance
> > `0x9f08310' has no handler with id `183'
> >
> > If I open and close the credits sub-window before closing the about box,
> I
> > don't get any warnings.
> >
> > Is there a way to avoid these warnings?
> >
> > (I can easily write my own about box, but it seems a shame not to use
> the
> > standard one.)
> >
> > Thanks!
> >
> 
> 
> This has to do with you calling Destroy with attached signal handlers,
> You should either let the gc handle it for you, or detach the signal
> handlers before you call Destroy.

All I do in my program is this (with appropriate declarations of progname,
progversion, prismIcon, authors, and documenters):

   new Gnome.About(progname, progversion, "(C) 2005 Harry Chesley",
      "Optics game", authors, documenters, null, prismIcon).Run();

So I suspect the offending behavior is inside the Gnome.About class. Short
of fixing it there (which I'd rather not get into as a "first" Mono project
:-), is there any way to work around it?

Thanks.






More information about the Mono-devel-list mailing list