[Gtk-sharp-list] App crashes...

John Luke John Luke <john.luke@gmail.com>
Thu, 26 Aug 2004 22:59:56 -0400

Since you are using Gnome stuff, you need to create a Gnome.Program
object instead of calling Gtk.Application.Init ();

// this initializes Gnome and whatever else it needs
Gnome.Program p = new Gnome.Program ("appname", "1.0", Gnome.Modules.UI, args);

That being said there may be other problems, but this is probably the big one.

On Thu, 26 Aug 2004 22:09:30 -0400, Nathan Clemons
<linux@windsofstorm.net> wrote:
> Converted an MPEG joining program that I'd previously written in Gtk to
> Gtk#. (Still some things not implemented, but the core functionality
> is.)
> Only, I'm stuck on a bug that cropped up. After I go through and join
> some files together (which does work), if I then go to the File menu to
> quit the app gracefully, it crashes with the following error:
> Unhandled Exception: System.NullReferenceException: Object reference not
> set to an instance of an object
> 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 <0x00056> gFuseMPEG.gFuseMPEGApp:Main (string[])
> Not really sure where this is coming from... if anyone could take a look
> over the code and suggest what I might be doing wrong, I'd appreciate
> it.
> http://personal.windsofstorm.net/gFuseMPEG.cs
> It's about 300 lines or so.
> --
> Nathan P. Clemons, Sun Microsystems CSA (2.6)
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list