[Mono-dev] Having difficulty porting to OS X.
bobrien at ucalgary.ca
bobrien at ucalgary.ca
Wed Aug 1 15:24:35 EDT 2007
Hi, I wrote a CSharp app using Visual Studio 2005 Express Edition.
I brought the exe file over to the mac where I have installed the latest
version of Mono.
I get some error messages from mono and was hoping someone could help me
work these out.
This is the log:
users-computer:~/Desktop/Release user$ mono Analyze2Dicom.exe
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for System.Windows.Forms.Form --->
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.TypeInitializationException: An
exception was thrown by the type initializer for System.Drawing.GDIPlus
---> System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception
stack trace ---
at <0x00000> <unknown method>
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000]
at System.Drawing.Image..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context) [0x00000]
at System.Drawing.Bitmap..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context) [0x00000]
at <0x00000> <unknown method>
at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] --- End of inner
exception stack trace ---
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000]
at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000]
at System.Runtime.Serialization.ObjectRecord.LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context) [0x00000]
at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object&
result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000]
at System.Resources.ResourceReader.ReadNonPredefinedValue (System.Type
exp_type) [0x00000]
at System.Resources.ResourceReader.ReadValueVer1 (System.Type type)
[0x00000]
at System.Resources.ResourceReader.ResourceValue (Int32 index) [0x00000]
at System.Resources.ResourceReader+ResourceEnumerator.get_Value ()
[0x00000]
at System.Resources.ResourceSet.ReadResources () [0x00000]
at System.Resources.ResourceSet.GetObject (System.String name, Boolean
ignoreCase) [0x00000]
at System.Resources.ResourceManager.GetObject (System.String name,
System.Globalization.CultureInfo culture) [0x00000]
at System.Resources.ResourceManager.GetObject (System.String name)
[0x00000]
at System.Windows.Forms.Locale.GetResource (System.String name) [0x00000]
at System.Windows.Forms.Form..cctor () [0x00000] --- End of inner
exception stack trace ---
at <0x00000> <unknown method>
at Analyze2Dicom.Form1..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) Analyze2Dicom.Form1:.ctor ()
at Analyze2Dicom.Form1.Main () [0x00000]
More information about the Mono-devel-list
mailing list