[Mono-list] GDI+ status: InvalidParameter

Jonathan Pobst monkey at jpobst.com
Tue Feb 24 15:34:04 EST 2009


> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.Control --->
> System.EntryPointNotFoundException: RegisterWindowMessage
>   at (wrapper managed-to-native)
> System.Windows.Forms.SafeNativeMethods:RegisterWindowMessage (string)
>   at System.Windows.Forms.Control..cctor () [0x00000] 
>   --- End of inner exception stack trace ---
>   at System.Windows.Forms.Application.SetCompatibleTextRenderingDefault
> (Boolean defaultValue) [0x00000] 
>   at CalculPoint.Program.Main () [0x00000] 
> 
> Any Idea ?
> 

This looks like you have Microsoft's System.Windows.Forms.dll on your 
system somehow.  Mono's does not contain a class called 
SafeNativeMethods or a method called RegisterWindowMessage.

Jonathan



More information about the Mono-list mailing list