Hi,
   As part of the application I'm working on, cross platform between 
Windows/Linux/MacOSX, I'm having an error with the Linux/MacOSX implementation 
of WinForms that I'm not seeing on Windows (using Mono on Windows). The error 
comes in creating a form in a spun-off STAThread, where I get this error:

type: 10 Not implemented

Unhandled Exception: System.NotImplementedException: The requested feature is 
not implemented [GDI+ status: NotImplemented]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x001a5] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:224
 
  at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x000bd] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/System.Drawing/System.Drawing/Image.cs:298
 
  at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean 
keepAlive) [0x00012] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/System.Drawing/System.Drawing/Image.cs:162
 
  at System.Drawing.Icon.GetInternalBitmap () [0x00037] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/System.Drawing/System.Drawing/Icon.cs:552
 
  at System.Drawing.Icon.ToBitmap () [0x0001b] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/System.Drawing/System.Drawing/Icon.cs:574
 
  at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
  at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd hwnd, 
System.Drawing.Icon icon) [0x00022] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1163
 
  at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, 
System.Drawing.Icon icon) [0x0000e] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5079
 
  at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, System.Drawing.Icon 
icon) [0x00000] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:946
 
  at System.Windows.Forms.Form.CreateHandle () [0x00080] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1871
 
  at System.Windows.Forms.Control.CreateControl () [0x00044] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3556
 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x0003e] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4735
 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00071] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2278
 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3243
 
  at (wrapper remoting-invoke-with-check) 
System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal, 
System.Windows.Forms.ApplicationContext context) [0x0005b] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:633
 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) 
[0x00000] in 
/tmp/monobuild/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:534
 
  at Icarus.IcarusThread.ShowInspector () [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()

Hope this info is useful. I'll try a build without icons on it to see if 
there's any better luck.

Cheers,

Euan.

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to