[Mono-osx] OSX 10.3.9 and Windows Forms on Mono

ash123 ash ajh123456 at gmail.com
Wed Mar 12 02:43:57 EDT 2008


Hello Mono experts,

I have downloaded and installed mono from
http://www.go-mono.com/mono-downloads/download.html for both Windows and
OSX. The versions I downloaded were 1.2.6_5 for Windows, and 1.2.6_6 for
OSX.

The OSX download section on this page says "This download works on Mac OS X
Tiger (10.4) and Leopard (10.5)" . I'm using OSX 10.3.9 so I thought that
could be an issue, however http://www.mono-project.com/Mono:OSX clearly says
it supports 10.3.9. Which is correct? If OSX 10.3.9 is no longer supported
that may explain the problem I'm getting below.

So, if 10.3.9 is still supported please read on:

Using Visual Studio 2008 on Windows XP, I wrote a very simple test Windows
Forms app that contains one button that when clicked displays a message box.
I've also removed all non-essential references so it now uses only System,
System.Drawing and System.Windows.Forms. The app runs happily on Windows in
both the .NET CLR and Mono.

I then copy the same EXE to Mac OSX 10.3.9 and from an xterm, change to the
relevant directory and type: mono WinFormsSimple.exe However the application
fails to start and instead I receive: "System.TypeInitializationException:
An exception was thrown by the type initializer for
System.Windows.Forms.WindowsFormsSynchronizationContext -
System.EntryPointNotFoundException: HiViewNewTrackingArea …."

I have searched through the forums at GotMono and looked at the in previous
mailing lists and have only come across similar but not identical problems
relating to dll not found and font family not found exceptions. However the
stack trace I am getting does does not appear to be the same problem. Others
mentioned that X Windows must be installed on the Mac because mono Windows
Forms uses font functionality from X windows. X Windows is definitely
installed.

Any thoughts on what the problem may be?

Thanks in advance,

Ash


Below is the full stack trace (with –debug):


Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for
System.Windows.Forms.WindowsFormsSynchronizationContext --->
System.EntryPointNotFoundException: HIViewNewTrackingArea
at (wrapper managed-to-native)
System.Windows.Forms.XplatUICarbon:HIViewNewTrackingArea(intptr,intptr,ulong,intptr&)
at System.Windows.Forms.XplatUICarbon.CreateWindow (
System.Windows.Forms.CreateParams cp) [0x00000]
at System.Windows.Forms.XplatUI.CreateWindow (
System.Windows.Forms.CreateParams cp) [0x00000]
at System.Windows.Forms.NativeWindow.CreateHandle (
System.Windows.Forms.CreateParams create_params) [0x00000]
at System.Windows.Forms.Control.CreateHandle () [0x00000]
at System.Windows.Forms.Control.CreateControl () [0x00000]
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:CreateControl ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
[0x00000] --- End of inner exception stack trace ---

at <0x00000> <unknown method>
at System.Windows.Forms.Control..ctor () [0x00000]
at System.Windows.Forms.Control..ctor () [0x00000]
at System.Windows.Forms.ScrollableControl..ctor () [0x00000]
at System.Windows.Forms.ContainerControl..ctor () [0x00000]
at System.Windows.Forms.Form..ctor () [0x00000]
at WinFormsSimple.MainForm..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) WinFormsSimple.MainForm:.ctor ()
at WinFormsSimple.Program.Main () [0x00000]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20080312/e3fbdf6a/attachment-0001.html 


More information about the Mono-osx mailing list