[Gtk-sharp-list] Segfault using Gnome.Font

Alberto Paro alberto at paro.homeunix.org
Wed Oct 19 13:41:33 EDT 2005


This is the simple example PrintSample.cs in which I have added these
three lines:

-----
 Gnome.Font fontBold =  Gnome.Font.FindClosest("Times New Roman",10);
 if(fontBold!=null)
	gpc.SetFont(fontBold);
-----

it segfaults during static construction of Gnome.Font
with:

** ERROR **: Type GLib.Object which is passed to unmanaged code must
have a StructLayout attribute
aborting...

Also the other constructors don't work.
Tested with gtk# svn and libgnomeprint-2-2.so.0.1.0

Hi,
	Alberto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PrintSample.cs
Type: text/x-csharp
Size: 2281 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20051019/bbabdfcc/PrintSample.bin


More information about the Gtk-sharp-list mailing list