[Mono-winforms-list] DefineCursor not implemented exception in
Mono1.1.10
Peter Dennis Bartok
peter at novonyx.com
Tue Nov 15 13:45:37 EST 2005
First question:
DefineCursor boils down to a driver specific method, and the Mac driver
does not implement it (yet). On the other platforms it is fully implemented.
Second question:
Chances are that 1.1.6 did not yet have DefineCursor implemented on all
platforms.
Third question:
You can implement the missing method in the OS X driver, that'll get you
around the exception. Or you can simply remove the line that throws the
exception.
Our (the SWF team's) focus for now is on Linux and Win32, for the time being
we're dependent on community contributions for OS X.
Cheers,
Peter
-----Original Message-----
From: "Edward J. Sabol" <sabol at alderaan.gsfc.nasa.gov>
To: <mono-winforms-list at lists.ximian.com>
Date: 15 November, 2005 11:15
Subject: [Mono-winforms-list] DefineCursor not implemented exception in
Mono1.1.10
>I upgraded to Mono 1.1.10 on my Mac on Friday. A SWF program that I ported
>from Windows launches just fine with Mono 1.1.6 (although it's not fully
>functional), but it now dies on launch, throwing the exception appended at
>the bottom.... DefineCursor not implemented in
>System.Windows.Forms.XplatUIOSX.
>
>Questions:
>
>Does DefineCursor work on other platforms or is this a Mac OS X deficiency?
>
>As to why the program launched before but now fails... I'm guessing there
>used to be stub functions for DefineCursor which have since been removed?
>
>Any workarounds that can get me pass this?
>
>Thanks,
>Ed
>
>
>Mono System.Windows.Forms Assembly [Revision: 51965; built: 2005/10/20
>3:34:45]
>
>Unhandled Exception: System.TypeInitializationException: An exception was
>thrown by the type initializer for System.Windows.Forms.Splitter --->
>System.NotImplementedException: The requested feature is not implemented.
>in <0x0007c> System.Windows.Forms.XplatUIOSX:DefineCursor
>(System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, Color
>cursor_pixel, Color mask_pixel, Int32 xHotSpot, Int32 yHotSpot)
>in <0x000d4> System.Windows.Forms.XplatUI:DefineCursor
>(System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, Color
>cursor_pixel, Color mask_pixel, Int32 xHotSpot, Int32 yHotSpot)
>in <0x00134> System.Windows.Forms.Cursor:CreateCursor (System.IO.Stream
>stream)
>in <0x000e8> System.Windows.Forms.Cursor:.ctor (System.Type type,
>System.String resource)
>in <0x000a4> System.Windows.Forms.Splitter:.cctor ()--- End of inner
>exception stack trace ---
>_______________________________________________
>Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
More information about the Mono-winforms-list
mailing list