[Gtk-sharp-list] Sudden change in API? Cairo API crashes!

Christian Hoff Christian_Hoff at gmx.net
Sun Feb 5 12:04:35 UTC 2012


for everyone who didn't look at the screenshot: You are geeting a DllNotFound exception becuse the system is unable to find libcairo.2.dylib in the library path.

So what we can say for sure is that the Mono is unable to find the native Cairo libraries in the library search path. I'm not sure if the Mono installer for Mac ships the native Gtk+/Cairo libraries, but if it does, then this is likely to be an installer bug.

Are you able to run a simple Gtk# hello world program that does not make direct use of the Cairo API? And do you actually have libcairo.2.dylib somewhere on you Mac system or is the file really missing?

- Christian

-------- Original-Nachricht --------
> Datum: Sun, 5 Feb 2012 01:02:22 -0800 (PST)
> Von: MrFreeman <biggestsonicfan at gmail.com>
> An: gtk-sharp-list at lists.ximian.com
> Betreff: [Gtk-sharp-list] Sudden change in API? Cairo API crashes!

> Greetings.
> I've been developing a program in GTK# using MonoDevelop for Windows and
> have been testing my program on a Mac using the Mono Framework 2.6.7. I
> upgraded tonight to Mono Framework 2.10.8, and now my program no longer
> functions correctly. My program, however, functions correctly in Windows,
> and I have not upgraded my GTK framework yet.
> The line it my program seems to crash on is as follows:
> Context context = Gdk.CairoHelper.Create(eb.GdkWindow);
> context.SetSourceRGBA(1.0, 1.0, 1.0, 0.0);
> Why would this CairoHelper suddenly cause my program to crash in this new
> update yet still work on my older GTK Windows machine?
> http://i42.tinypic.com/20t58ad.jpg 
> Here is a screenshot of the new error I am encountering, which I did not
> encounter before this update. 
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Sudden-change-in-API-Cairo-API-crashes-tp4358621p4358621.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

More information about the Gtk-sharp-list mailing list