[Mono-list] Exception with Gtk.combo

Christoph Schweda mailingliste@codenation.de
Fri, 25 Jun 2004 22:23:18 +0200


--=-kUDvT5U42RVCUu9D8u7G
Content-Type: multipart/mixed; boundary="=-rYtTseukL2wf4oKMohsV"


--=-rYtTseukL2wf4oKMohsV
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello,

  I have tested the Mono Handbook example for glade. It works fine, but
after adding a combo field and reading the text of it, I got an
exception. I don't know if it is a bug or my mistake. The code is
attached with the email.

The exception after clicking the button:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in [0x0000b] (at /home/chris/devel/Mono/gDVBszap/Main.cs:94)
GladeSamples.GladeTest:on_button1_clicked (object,System.EventArgs)
in <0x0006a> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x00120> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
in <0x00055> (wrapper native-to-managed)
GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in [0x00023] (at /home/chris/devel/Mono/gDVBszap/Main.cs:87)
GladeSamples.GladeTest:.ctor (string[])
in [0x00001] (at /home/chris/devel/Mono/gDVBszap/Main.cs:74)
GladeSamples.GladeTest:Main (string[])
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Thanks
Christoph

--=-rYtTseukL2wf4oKMohsV
Content-Disposition: attachment; filename=glade.cs
Content-Type: text/x-csharp; name=glade.cs; charset=UTF-8
Content-Transfer-Encoding: base64

bmFtZXNwYWNlIEdsYWRlU2FtcGxlcyB7DQogICAgICAgIHVzaW5nIFN5c3RlbTsNCiAgICAgICAg
dXNpbmcgR3RrOw0KICAgICAgICB1c2luZyBHbGFkZTsNCiAgICAgICAgdXNpbmcgR3RrU2hhcnA7
DQoNCiAgICAgICAgcHVibGljIGNsYXNzIEdsYWRlVGVzdA0KICAgICAgICB7DQogICAgICAgICAg
ICAgICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4gKHN0cmluZ1tdIGFyZ3MpDQogICAgICAgICAg
ICAgICAgew0KICAgICAgICAgICAgICAgICAgICAgICAgbmV3IEdsYWRlVGVzdChhcmdzKTsNCiAg
ICAgICAgICAgICAgICB9DQogDQogICAgICAgICAgICAgICAgW0dsYWRlLldpZGdldF0gICAgICAN
CiAgICAgICAgICAgICAgICBCdXR0b24gYnV0dG9uMTsNCiAgICAgICAgICAgICAgICBDb21ibyBj
b21ibzE7DQoNCiAgICAgICAgICAgICAgICBwdWJsaWMgR2xhZGVUZXN0IChzdHJpbmdbXSBhcmdz
KSANCiAgICAgICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgICAgICAgICBBcHBsaWNhdGlv
bi5Jbml0KCk7DQoNCiAgICAgICAgICAgICAgICAgICAgICAgIEdsYWRlLlhNTCBneG1sID0gbmV3
IEdsYWRlLlhNTCAoImdkdmJzemFwLmdsYWRlIiwgIndpbmRvdzEiLCBudWxsKTsNCiAgICAgICAg
ICAgICAgICAgICAgICAgIGd4bWwuQXV0b2Nvbm5lY3QgKHRoaXMpOyAgICAgICAgICAgICANCg0K
ICAgICAgICAgICAgICAgICAgICAgICAgQXBwbGljYXRpb24uUnVuKCk7DQogICAgICAgICAgICAg
ICAgfSAgICAgICAgICAgICAgDQogICAgDQogICAgICAgICAgICAgICAgcHVibGljIHZvaWQgb25f
YnV0dG9uMV9jbGlja2VkIChTeXN0ZW0uT2JqZWN0IG9iaiwgRXZlbnRBcmdzIGUpIA0KICAgICAg
ICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lIChj
b21ibzEuRW50cnkuVGV4dCk7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICB9DQp9DQo=

--=-rYtTseukL2wf4oKMohsV--

--=-kUDvT5U42RVCUu9D8u7G
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA3Im2w4jXEox5b9QRApLvAJ9hEvQSXyrNRqvb+Fkjvyk3CKZhvACZAcSE
QXF00UF/vfUxjI2GkfXYK4A=
=fYuU
-----END PGP SIGNATURE-----

--=-kUDvT5U42RVCUu9D8u7G--