Hi, Thanks for the code. I've played around with it, and here's what I saw:
1/ On Windows with Xamarin Studio 5.0 I had to add a reference to gio-sharp.dll to build successfully. That's because Gtk.Application derives from GLib.Application, which is in gio-sharp. This is probably Xamarin Studio/MonoDevelop being more strict in version 5.0, so unrelated with your error. 2/ You should not have to install GTK+ itself, all the necessary native binaries should be in the Gtk# installer. 3/ I commented out the GStreamer stuff, because I don't have it on my Windows machine. 4/ After that, I was able to run the app, but opening the FileChooserDialog failed with an error about missing GSettings schema. The GSettings schemas are installed by the MSI, so I'll have to look into what's wrong here. Now I've just got an idea: Your app uses GStreamer 1.0 through GStreamer#. Where did you get the Windows binaries for GStreamer 1.0 ? I'm thinking maybe they have their own copy of libpixman-1-0.dll, which clashes with the one provided by Gtk# and causes the error you have ? I hope this helps. -- Bertrand On Thu, Jun 12, 2014 at 5:11 PM, Sven Baus <s.bau...@gmx.net> wrote: > Hello Bertrand, > > I've attached the code, that I used to build the application. I build it > with monodevelop (Version 4.2) and did a windows build for a window xp > vm. I installed GTK+ 3.6.4 and checked the installation via gtk3-demo. > This all works. > > Can't find a problem, but I'm happy if you take a look and say > something ;). > > Greetings > Sven > > Am Mittwoch, den 11.06.2014, 19:03 +0200 schrieb Bertrand Lorentz: >> Hi, >> >> Is the complete source code available somewhere, including the build system ? >> Without it, it's hard to see what could be wrong. For example, you >> could be inadvertently link with a GTK 2.x library. >> >> -- >> Bertrand >> >> On Tue, Jun 10, 2014 at 7:30 PM, Sven Baus <s.bau...@gmx.net> wrote: >> > Hello Bertrand, >> > >> > thanks for your amazing work, getting Gtk# 2.99.3 to use. I'm currently >> > facing a bug in the Gtk# 2.99.3 for windows. Running the following code, >> > I can open the application (build on linux with monodevelop), but >> > everytime an event happens, I get an System.ViolationException: >> > >> > public MainWindow (Builder builder, IntPtr handle) : base (handle) >> > { >> > Console.WriteLine("MainWindow Constructor"); >> > builder.Autoconnect (this); >> > DeleteEvent += OnDeleteEvent; >> > >> > button1.Clicked += onButtonClick; >> > Gst.Application.Init(); >> > btnSearchFile.Clicked += btnSearchFileClicked; >> > } >> > >> > void btnSearchFileClicked (object sender, EventArgs e) >> > { >> > FileChooserDialog fcdSearchAudiofile = new >> > FileChooserDialog("Search",this,FileChooserAction.Open,"Abbrechen",ResponseType.Cancel,"Ok",ResponseType.Ok); >> > int retVal = fcdSearchAudiofile.Run(); >> > if ((ResponseType)retVal == ResponseType.Ok) >> > { >> > entFilePath.Text = fcdSearchAudiofile.Filename; >> > } >> > fcdSearchAudiofile.Destroy(); >> > } >> > >> > >> > Faulting application gtk3-sharp-test.exe, version 1.0.5274.34819, stamp >> > 53973e67, faulting module libpixman-1-0.dll, version 0.0.0.0, stamp >> > 527c1dd5, debug? 0, fault address 0x0007e1a8. >> > >> > Application: Gtk3-Sharp-Test.exe >> > Framework Version: v4.0.30319 >> > Description: The process was terminated due to an unhandled exception. >> > Exception Info: System.AccessViolationException >> > Stack: >> > at Gtk.Application.gtk_main() >> > at Gtk.Application.Run() >> > at Gtk3SharpTest.MainClass.Main(System.String[]) >> > >> > Any ideas, why this happens? >> > >> > Thanks for your help guys ;). >> > Sven >> > >> > >> > Weitere Informationen über die Hilfe- und Supportdienste erhalten Sie >> > unter http://go.microsoft.com/fwlink/events.asp. >> > >> > >> > Am Freitag, den 06.06.2014, 16:44 +0200 schrieb Bertrand Lorentz: >> >> We're happy to announce the release of Gtk# 2.99.3, the fourth beta >> >> release of C# bindings for GTK 3.x. >> >> >> >> This version of Gtk# provides bindings for the API exposed by the >> >> following libraries: >> >> * cairo 1.10.0 >> >> * glib 2.28.0 >> >> * pango 1.28.3 >> >> * atk 1.32.0 >> >> * gdk-pixbuf 2.22.1 >> >> * gtk+ 3.0.0 >> >> >> >> There is no API stability guarantee for now, but we try to keep >> >> breaking changes to a minimum. >> >> >> >> * Gtk# 2.99.3 source tarball: >> >> >> >> https://download.gnome.org/sources/gtk-sharp/2.99/gtk-sharp-2.99.3.tar.xz >> >> >> >> https://download.gnome.org/sources/gtk-sharp/2.99/gtk-sharp-2.99.3.sha256sum >> >> >> >> * Source code repository: https://github.com/mono/gtk-sharp >> >> >> >> This is the first 2.99.x release with a Windows installer, which you >> >> can download at: >> >> >> >> https://download.gnome.org/binaries/win32/gtk-sharp/2.99/gtk-sharp-2.99.3.msi >> >> >> >> To find out about all the new features, improvements and bug fixes >> >> included in this release, you can read the release notes at: >> >> https://github.com/mono/gtk-sharp/releases/tag/2.99.3 >> >> >> >> This version of Gtk# can be installed in parallel with Gtk# 2.x, and >> >> should not have any impact on applications using Gtk# 2.x. >> >> >> >> If you encounter any bad behavior with this release, please do not >> >> hesitate to file bugs! >> >> https://bugzilla.xamarin.com/enter_bug.cgi?product=Gtk%23 >> >> >> >> I'd like thank everybody who contributed to this release. This >> >> wouldn't have been possible without their hard work ! >> >> >> >> -- >> >> Bertrand >> >> _______________________________________________ >> >> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com >> >> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list >> > >> > -- >> > Mit freundlichen Grüßen >> > Sven Baus >> > s.bau...@gmx.net >> > http://www.djfreezet.de >> > Tel.: 0175 / 49 50 309 >> > >> > _______________________________________________ >> > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com >> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -- > Mit freundlichen Grüßen > Sven Baus > s.bau...@gmx.net > http://www.djfreezet.de > Tel.: 0175 / 49 50 309 _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list