[Gtk-sharp-list] Gtk-Sharp throws exception on Windows

Carlos J. Muentes carlos at rockwithme.org
Wed Oct 4 11:19:02 EDT 2006


Method not found exceptions usually occur when running a different
(usually older) versions of a referenced assembly.  Try confirming that
you are running the same versions of the gtk# libraries on both Linux
and Windows.



> -------- Original Message --------
> Subject: [Gtk-sharp-list] Gtk-Sharp throws exception on Windows
> From: Hongli Lai <h.lai at chello.nl>
> Date: Wed, October 04, 2006 11:15 am
> To: gtk-sharp-list at lists.ximian.com
> 
> I'm currently writing a Gtk-Sharp app using Mono on Linux. It's supposed 
> to also work on Windows.
> 
> But when I run the program, it throws an exception:
> 
> Method not found: Void Gdk.Drawable.DrawPoints(Gdk.GC, Gdk.Point[]).:
>     at FieldEditor.FieldView.RenderToDrawable(Field field, 
> FieldSelection region, FieldSelection selection, UInt32 zoomLevel, 
> Drawable drawable)
>     at FieldEditor.FieldView.OnExposed(Object o, ExposeEventArgs args)
>     at Gtk.Widget.ExposeEventSignalCallback(IntPtr arg0, IntPtr arg1, 
> IntPtr gch)
>     at Gtk.Application.gtk_main()
>     at Gtk.Application.Run()
>     at FieldEditor.MainClass.Main(String[] args)
> 
> This is weird. The program can create Gtk windows and widgets correctly, 
> yet cannot call Gdk functions. Did I do something wrong or is this a bug 
> in Gtk-Sharp?
> 
> Extra information:
> - The program's source code is located at 
> http://svn.sourceforge.net/viewvc/openkore/field-editor/trunk/
> - A binary is available here: http://www.openkore.com/misc/FieldEditor.zip
> - To use the program you need a random .fld file, available here: 
> http://svn.sourceforge.net/viewvc/openkore/fieldpack/trunk/fields/
> - I'm using .Net framework 2.0 and Gtk-Sharp 2.7.1-0.4
> - The .exe was compiled as follows: mcs 
> -pkg:gtk-sharp-2.0,glade-sharp-2.0 *.cs -out:bin/Release/FieldEditor.exe 
> -target:winexe -optimize
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



More information about the Gtk-sharp-list mailing list