[Gtk-sharp-list] Gtk# and .NET2.0 crashing all over the place

Cody Russell bratsche at gnome.org
Sun Mar 18 12:32:29 EDT 2007

On Sun, 2007-03-18 at 15:52 +0000, Michael Hutchinson wrote:
> On 3/18/07, Cody Russell <bratsche at gnome.org> wrote:
> > I *think* that gtk# is specifically targeted at .NET 1.1 at this point
> > still, so I think using it with .NET 2.0 might still be a "at your own
> > risk" type of thing.  I have used it with VS2005 Professional, but in
> > one or two places the runtime would emit a StackImbalanceException in
> > some of my custom widgets' drawing code.  Using all stock widgets, I
> > don't think I ever received any.  I never tried using VS2005 Express,
> > but it seems like that should behave the same as Professional.
> >
> > I mostly use gtk# right now on VS2003 Professional, where it runs just
> > fine.  But that's not .NET 2.0.
> FYI, several major GTK# apps  (MonoDevelop, Banshee and F-Spot) are
> running absolutely fine on Mono's 2.0 profile. It looks like you have
> a GTK+/GTK#/Windows issue.

Yeah.  As I mentioned, I've used gtk# on VS2005 with .NET 2.0 and it
worked, although I got some PInvokeStackImbalance exceptions.  I haven't
tested recently to see if I still get that recently, though, so they
might be gone now.  Those were not a Win32/GTK+ issue, but they could be
worked around at the time.

More information about the Gtk-sharp-list mailing list