[Gtk-sharp-list] General Question
John Luke
jluke@cfl.rr.com
27 Jul 2003 14:24:49 -0400
On Sun, 2003-07-27 at 02:17, Todd Berman wrote:
> I am in the middle of writing a gtk# app, and I have a CheckButton that
> calls a function when toggled. Now, when the CheckButton is hit I get
> the following exception:
>
> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required
> in (unmanaged) 06 GLib.Object:g_object_unref (intptr)
> in <0x00004> 06 GLib.Object:g_object_unref (intptr)
> in <0x00030> 00 GLib.Object:Unref ()
> in <0x00148> 00 GLib.Object:PerformQueuedUnrefs ()
> in <0x0001b> 05 GLib.Object:PerformQueuedUnrefs ()
> in (unmanaged) 06 Gtk.Application:gtk_main ()
> in <0x00004> 06 Gtk.Application:gtk_main ()
> in <0x00007> 00 Gtk.Application:Run ()
> in <0x0029d> 00 SevenL.GypsyShell.Gypsy:.ctor ()
> in <0x00025> 00 SevenL.GypsyShell.Gypsy:Main (string[])
>
>
> This seems to occur only when I execute calls to a web service when it
> is toggled.
>
> Any idea or pointers would be greatly appreciated.
>
> --Todd
Would it be possible to extract out a small test case from your code
that causes this to happen, that way we can get some context of what is
going on. By the way, I just added a small example to Monodoc for
CheckButton, but my guess is the error is coming from somewhere else.