c# - MAC: Mono Helloworld example -
i did fresh install of mono on osx yosemite , tried examples on http://www.mono-project.com/docs/getting-started/mono-basics/.
the console hello world illustration runs without problem when tried windowsform hello world, got next error :
system.entrypointnotfoundexception: gdipcreatefromcontext_macosx @ (wrapper managed-to-native) system.drawing.gdiplus:gdipcreatefromcontext_macosx (intptr,int,int,intptr&) @ system.drawing.graphics.fromhwnd (intptr hwnd) [0x00000] in <filename unknown>:0 @ system.windows.forms.xplatuicarbon.painteventstart (system.windows.forms.message& msg, intptr handle, boolean client) [0x00000] in <filename unknown>:0 @ system.windows.forms.xplatui.painteventstart (system.windows.forms.message& msg, intptr handle, boolean client) [0x00000] in <filename unknown>:0 @ system.windows.forms.control.wmpaint (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.control.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.scrollablecontrol. @ system.windows.forms.scrollablecontrol.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.containercontrol.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.form.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.control+controlwindowtarget.onmessage (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.control+controlnativewindow.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.nativewindow.wndproc (intptr hwnd, msg msg, intptr wparam, intptr lparam) [0x00000] in <filename unknown>:0 chads-macbook-pro:c# chadleong$ mono hello.exe system.entrypointnotfoundexception: gdipcreatefromcontext_macosx @ (wrapper managed-to-native) system.drawing.gdiplus:gdipcreatefromcontext_macosx (intptr,int,int,intptr&) @ system.drawing.graphics.fromhwnd (intptr hwnd) [0x00000] in <filename unknown>:0 @ system.windows.forms.xplatuicarbon.painteventstart (system.windows.forms.message& msg, intptr handle, boolean client) [0x00000] in <filename unknown>:0 @ system.windows.forms.xplatui.painteventstart (system.windows.forms.message& msg, intptr handle, boolean client) [0x00000] in <filename unknown>:0 @ system.windows.forms.control.wmpaint (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.control.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.scrollablecontrol.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.containercontrol.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.form.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.control+controlwindowtarget.onmessage (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.control+controlnativewindow.wndproc (system.windows.forms.message& m) [0x00000] in <filename unknown>:0 @ system.windows.forms.nativewindow.wndproc (intptr hwnd, msg msg, intptr wparam, intptr lparam) [0x00000] in <filename unknown>:0
anyone got clue ? give thanks you!!
it's known bug/regression in 3.10 release: https://bugzilla.xamarin.com/show_bug.cgi?id=23553
this xamarin forum thread provides version fix: http://forums.xamarin.com/discussion/27011/fix-for-gdipcreatefromcontext-macosx-and-other-macios-gdi-issues
c# osx mono
No comments:
Post a Comment