Open amerkoleci opened 9 years ago
Could you post some sample code?
@sevoku This seems to be a bug in GtkSharp with wrong native signatures.
@amerkoleci 32bit or 64bit build?
64bit, i can disable that exception in visual studio and it works, but wanted to keep trace about issue
Yes, it looks like a Gtk bug. Where can I get 64bit Gtk3? Isn't the default installer 32bit only?
This is another one of those C-long imbalances probably. Or the definition changed from Gtk2 to Gtk3 and someone didn't notice.
In any case, this should be upstreamed to https://github.com/mono/gtk-sharp/
Thats why I asked for some sample code to narrow it down. Seems to occur, when a child is being added. Cause if you report an issue to gtk-sharp, they will ask for more information than just that this error occurred with Xwt, I think.
I've played around with the configurations and at least on Linux everything seems to work (with target x64). I assumed you are running Windows because of the path in the message... On Windows I get a BadImageFormatException with x64.
Yes, I'm using windows, you can reproduce same issue by using gtk3 sharp, create any widget which subclass from Gtk.Container (IE: Gtk.EventBox).
I'm using Gtk3 backend but I have issue while running and using custom canvas controls, here is the execption: