[MonoDevelop] gtk# application on windows
talton at gmail.com
Mon Mar 5 11:04:53 EST 2007
I was seeing a lot of exceptions in my GTK Windows applications. They often
happened around StoreObjects, which are used by the TreeView. Then I
followed this post:
Eric Albright wrote:
It turns out that even when you label your main function with [STAThread] on
a dual-core machine, we get problems with weird crashes.
The solution is to use the following thread idiom:
That fixed my problems. I hope that helps you out.
On 3/3/07, Adam Wood <AdamWood at xephi.co.uk> wrote:
> I've been running into the same problem as below today. I was just
> if anyone has found a fix for it yet?
> I managed to redirect the bindings to use gtk-sharp-2.8 and the app will
> start but there are a lot of exceptions generated. As far as I know I'm
> using any 2.10 specific features as I've only fixed a few bugs and
> recompiled. I think the errors are related to TreeView objects but I'll
> to get more info on that tomorrow.
> Any help would be appreciated. Thanks,
> On Monday 12 February 2007 19:59:10 Radu wrote:
> > Hello,
> > I haven't solved this problem yet. When I try to run my application on
> > Windows I get the following error:
> > c:\>ProiectPSBD.exe
> > Unhandled Exception: System.IO.FileNotFoundException: Could not load
> > file or assembly 'gtk-sharp, Version=126.96.36.199, Culture=neutral,
> > PublicKeyToken=35e10195dab3c99f' or one of its dependencies. The system
> > cannot find the file specified.
> > File name: 'gtk-sharp, Version=188.8.131.52, Culture=neutral,
> > PublicKeyToken=35e10195dab3c99f' at ProiectPSBD.MainClass.Main(String
> > args)
> > WRN: Assembly binding logging is turned OFF.
> > To enable assembly bind failure logging, set the registry value
> > [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
> > Note: There is some performance penalty associated with assembly bind
> > failure logging.
> > To turn this feature off, remove the registry value
> > [HKLM\Software\Microsoft\Fusion!EnableLog].
> > On Windows I've installed gtksharp-runtime-2.8.3-win32-0.0.exe on
> > Microsoft .NET Framework 2.0.
> > On Linux I can't downgrade from gtk-sharp-2.10, I get an error when I
> > compile the next available version from portage, gtk-sharp-2.8.2. I
> > can't find gtk-sharp-2.8.3 sources anywhere...
> > Thanks, and sorry for double posting.
> > Sanford Armstrong wrote:
> > > On 2/11/07, Radu <kenjiru.ro at gmail.com> wrote:
> > >> Hello,
> > >>
> > >> I've compiled my application for 1.1 Runtime version. So will my
> > >> application run on .NET 2.0 or it will require .NET 1.1?
> > >
> > > Normally you can run .NET 1.1 applications on .NET 2.0 with no
> > > problem. In the rare case that this doesn't work, you just have to
> > > edit [appname].exe.config to point to the earlier .NET framework
> > > version. But you shouldn't have to do that. If you're in doubt,
> > > check MSDN for the list of obscure incompatibilities.
> > >
> > >> On linux I've used gtk-sharp-2.10.0. What do I have to do to lower
> > >> dependencies of the gtk# related libraries?
> > >
> > > If you are not using any 2.10 features (e.g. printing, status icon,
> > > etc), then you should be fine using 2.8 on Windows.
> > >
> > > See this page for assistance getting gtk-sharp on MS .NET:
> > >
> > > http://www.mono-project.com/Gtk-Sharp_Installer_for_.NET_Framework
> > >
> > > Best,
> > > Sandy
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-list