[Mono-dev] Cair.Context crash

Peter Dennis Bartok peter at novonyx.com
Sun Mar 5 21:12:02 EST 2006


Piotr,

The stack trace tells you "System.DllNotFoundException: libgdk-x11-2.0.so"
Check that you have that library, and that it can be found when running 
monodoc (ie make sure you ld.so.conf or LD_LIBRARY_PATH point to the 
directory it's in). Also make sure that that libs dependencies are also all 
installed.

Cheers,
 Peter

-----Original Message-----
From: "Piotr Zurek" <p.zurek at gmail.com>
To: <mono-devel-list at lists.ximian.com>
Date: Sunday, 05 March, 2006 17:21
Subject: [Mono-dev] Cair.Context crash


Hi guys,

I'm gettting a nasty crash when compiling the Cairo.Context example
from Monodoc:

Unhandled Exception: System.DllNotFoundException: libgdk-x11-2.0.so
in (wrapper managed-to-native) Gdk.Context:gdk_drawable_get_visual (intptr)
in [0x00043] (at /home/ubuntu/Projects/cairo_test_2/Main.cs:110)
Gdk.Context:CreateDrawable (Gdk.Drawable drawable)
in [0x00008] (at /home/ubuntu/Projects/cairo_test_2/Main.cs:70)
CairoGraphic:OnExposeEvent (Gdk.EventExpose args)
in [0x00014] (at
/tmp/scratch/BUILD/gtk-sharp-2.4.2/gtk/generated/Widget.cs:2421)
Gtk.Widget:exposeevent_cb (IntPtr widget, IntPtr evnt)
in (wrapper native-to-managed) Gtk.Widget:exposeevent_cb (intptr,intptr)
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in [0x00000] (at
/tmp/scratch/BUILD/gtk-sharp-2.4.2/gtk/Application.cs:99)
Gtk.Application:Run ()
in [0x0004a] (at /home/ubuntu/Projects/cairo_test_2/Main.cs:24) 
GtkCairo:Main ()

Any idea what I'm doing wrong? It is mono 1.1.13.4.
I also get something like that when compiling the CairoExample from
Gkt# samples.
I'd appreciate any help.

Cheers
piotr




More information about the Mono-devel-list mailing list