<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html; charset=ISO-8859-1"
<body bgcolor="#ffffff" text="#000000">
I have had a similar error occur when I have accidentally created an
empty menu item. You can check this by seeing if the xml used to create
the menubar is valid. I'm not sure this is the error but it is similar
and easy to check.<br>
On 1/26/2010 9:18 PM, Michael Hutchinson wrote:
<pre wrap="">On Mon, Jan 18, 2010 at 3:56 PM, Simian Man <a class="moz-txt-link-rfc2396E" href="mailto:email@example.com"><firstname.lastname@example.org></a> wrote:
<pre wrap="">Hello all, I'm sure this is a simple problem, but as I'm new to C#, GTK, and
Monodevelop, I can't seem to figure it out. I started by creating a new GTK#
program which gives you a simple skeleton that opens a blank window and
nothing else. When I try to add anything at all with the GUI designer,
however, the program crashes with:
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
at MainWindow.Build () [0x002dd] in
at MainWindow..ctor () [0x00007] in
at congopaint.MainClass.Main (System.String args) [0x00005] in
The line of code in question is:
this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
this.menubar1.Name = "menubar1";
I'm assuming that this.menubar1 is NULL at this point, but this code was
automatically generated by the GUI designer, so I don't know what to do
about it. Does anybody have any ideas?
It sounds like a bug in the MonoDevelop code generator. What
MonoDevelop version are you using?
No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 8.5.432 / Virus Database: 271.1.1/2646 - Release Date: 01/26/10 07:46:00