[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Xsharp on Win32?

From: HJ
Subject: Re: [DotGNU]Xsharp on Win32?
Date: Sat, 1 Nov 2003 18:48:21 -0800 (PST)

Previously, I did the standard "windows/cygwin-based" build and
issued that build command I sent to the list and it worked, oddly.

However, I then rebuilt pnet/pnetlib from an updated CVS checkout
and  specified --with-x in configure.  Then, upon building
libXsharpSupport.dll  I was required to supply the libraries,
similar to you.

The build command I ended up using was:

gcc -mno-cygwin -g -O2 --shared -o libXsharpSupport.dll
XsharpSupport.o -L/usr/X11R6/bin -L/usr/X11R6/lib -lX11 -lIce
-lXft.dll -lfontconfig.dll -lc

(I also had installed more Cygwin packages to include xfs support
and the like...)

I havn't yet investigated the (seemingly font-related) stacktrace I
get in 99.9% (read: 100%) of all X# applications that use text)

...and the 'invalid widget size' stacktrace as well -- it seems
'Image img = new Image("file");''s .Width and .Height return 0 in
all circumstances...

I think something is failing with the call to
SharpCreateImageFromDIB  (from pnetlib/Xsharp/ConvertImage.cs:59, 
from pnetlib/Xsharp/Image.cs:265)  but that's speculation at the

DotGNU.Images.Image.Load seems to work fine, as does 'Frame frm =
img.GetFrame(0);', which are done in pnetlib/Xsharp/Image.cs prior
to  the ConvertImage calls (Image.cs:259)


Uncaught exception: System.NullReferenceException: The value 'null'
was found where an instance of an object was required
        at Xsharp.FontExtents.get_Ascent()
        at System.Drawing.Toolkit.DrawingGraphics.DrawString(String,
Int32, Int32, StringFormat) in .DrawingGraphics.cs
        at System.Drawing.Graphics.DrawString(String, Font, Brush,
RectangleF, StringFormat) in .Graphics.cs
        at System.Windows.Forms.Label.Draw(Graphics) in .Label.cs
        at System.Windows.Forms.Label.Redraw() in .Label.cs
        at System.Windows.Forms.Label.Recalculate() in .Label.cs
        at System.Windows.Forms.Label.OnTextChanged(EventArgs) in
        at System.Windows.Forms.Control.set_Text(String) in
        at FormsHello..ctor() in .FormsHello.cs
        at FormsHello.Main(String[]) in .FormsHello.cs

Uncaught exception: Xsharp.XException: Invalid widget size specified
        at Xsharp.InputOnlyWidget..ctor(Widget, Int32, Int32, Int32,
Int32, Color, Boolean, Boolean) in .InputOnlyWidget.cs
        at Xsharp.InputOutputWidget..ctor(Widget, Int32, Int32,
Int32, Int32, Color, Color, Boolean, Boolean)
        at Xsharp.TopLevelWindow..ctor(Screen, String, Int32, Int32)
        at Xsharp.TopLevelWindow..ctor(String, Int32, Int32)
        at XHello..ctor(String, Int32, Int32, Image)
        at XHello.Main(String[]) in .XHello.cs

Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

reply via email to

[Prev in Thread] Current Thread [Next in Thread]