[Mono-osx] System.Drawing problems with Mono 2.8.1

ChristianManthey info at manthey-it.de
Fri Nov 19 15:30:11 EST 2010


i tried to run my application today with the current 2.8.1 framework on a G5
and encountered some strange errors in the Systems.Drawing.Bitmap class.
After some tests i decided to upgrade my own MacBook from 2.6.7 to the new
version and ran into the same error.

Object reference not set to an instance of an object
  at System.Drawing.Graphics.Dispose () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:Dispose ()
  at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Int32
width, Int32 height) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor

The function call was the following:
newBitmap = new Bitmap(orgImage, iWidth, iHeight);
This code is executed in a separate thread controlled by the main window

Now i tried to remove the 2.8.1 version (with the script from
http://www.mono-project.com/Mono:OSX) and installed the old 2.6.7 version
again, but now i do get a different error message...

Generic Error [GDI+ status: GenericError]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in
<filename unknown>:0
  at System.Drawing.Image.Save (System.String filename,
System.Drawing.Imaging.ImageCodecInfo encoder,
System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000] in
<filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Image:Save

I also tried to use the 2.8 version but with no luck.

Is there someone replaced with the 2.8.1 version that is not deleted with
the script mentioned above and that is also not replaced with the 2.6.7
version in the area of System.Drawing?

Any help is highly appreciated!

Kind regards,
View this message in context: http://mono.1490590.n4.nabble.com/System-Drawing-problems-with-Mono-2-8-1-tp3050944p3050944.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list