You are not logged in.

#1 2012-11-01 17:51:14

Registered: 2012-08-26
Posts: 5

monodevelop - Generic GDI+ error on Resize() ?

I am working with a friends codebase that uses all the built-in functionality of .NET 4 and am running into a wall with a generic GDI+ error.  It seems to trigger an exception when calling the Resize function to draw the picturebox control.

From what I can tell - Mono does have all this functionality implemented, so I am not sure what is tripping the error.  I am at work right now, but I can post code snippets tonight.  Let me know what other information would be helpful in diagnosing the issue.    Thanks smile


$ mono Demo1.exe
Could not set X locale modifiers
System.Exception: Generic Error [GDI+ status: GenericError]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0 
  at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:FillRectangle (System.Drawing.Brush,int,int,int,int)
  at crystalis_rom_viewer.NesRom.ReadTiles () [0x00000] in <filename unknown>:0 
  at crystalis_rom_viewer.NesRom..ctor (System.String filename) [0x00000] in <filename unknown>:0 
  at crystalis_rom_viewer.CrystalisRom..ctor () [0x00000] in <filename unknown>:0 
  at crystalis_rom_viewer.frmRomViewer.frmRomViewer_Load (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] in <filename unknown>:0 

Source code will be put on github for review.

Last edited by Nrezinorn (2012-11-02 03:53:24)


#2 2012-11-04 21:53:46

Registered: 2012-09-04
Posts: 93

Re: monodevelop - Generic GDI+ error on Resize() ?

Google "Could not set X locale modifiers", there is some mono-related function that is known to be buggy, several different application have had patches to fix it.


Board footer

Powered by FluxBB