[Mono-devel-list] System.Drawing.RectangleF problem
Peter Dennis Bartok
peter at novonyx.com
Tue Oct 5 22:19:17 EDT 2004
I just commited a bunch of patches for gdiplus that remove the dependency on
a particular cairo version, and the latest cvs libgdiplus version should no
longer give you any problems. However, if I am wrong, please let me know :-)
Peter
-----Original Message-----
From: "Aaron Forrest" <aaron at ultramoderne.net>
To: <mono-devel-list at lists.ximian.com>
Date: 02 October, 2004 08:56
Subject: [Mono-devel-list] System.Drawing.RectangleF problem
>The attached file compiles but then gives the following error when i run
>it:
>
>aaron at newark:~/programming/mono$ ./DrawString.exe
>Unhandled Exception: System.NullReferenceException: Object reference not
>set to an instance of an object
>in (unmanaged) (wrapper managed-to-native)
>System.Drawing.GDIPlus:GdipDrawString
>(intptr,string,int,intptr,System.Drawing.RectangleF&,intptr,intptr)
>in <0x00004> (wrapper managed-to-native)
>System.Drawing.GDIPlus:GdipDrawString
>(intptr,string,int,intptr,System.Drawing.RectangleF&,intptr,intptr)
>in <0x00090> System.Drawing.Graphics:DrawString
>(string,System.Drawing.Font,System.Drawing.Brush,System.Drawing.RectangleF,System.Drawing.StringFormat)
>in <0x00108> (wrapper remoting-invoke-with-check)
>System.Drawing.Graphics:DrawString
>(string,System.Drawing.Font,System.Drawing.Brush,System.Drawing.RectangleF,System.Drawing.StringFormat)
>in <0x00160> DrawText:.ctor (string)
>in <0x000ad> DrawText:Main ()
>
>Is this a bug in the System.Graphics.DrawString () method which uses a
>formatting rectangle or is it an error in my code? So long as I don't
>use a RectangleF for formatting it works just fine.
>Thanks
>aaron
>
More information about the Mono-devel-list
mailing list