Runtime error running WinForms app on Mac OS X

RomeoDelta <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
Hi,

I have quite a simple WinForms app I want to run on Mac OSX, but it gives me
a runtime error. The problem occurs when loading a PNG icon in the
Resources, see trace below

I can send someone the source, to investigate, but please email me
privately.

Thanks,

Rogier

CurrentDomain_UnhandledException
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.OverflowException: Number overflow.
  at (wrapper managed-to-native)
object:__icall_wrapper_mono_array_new_specific (intptr,int)
  at System.Drawing.Icon.InitFromStreamWithSize (System.IO.Stream stream,
Int32 width, Int32 height) [0x004da] in
/private/tmp/monobuild/build/BUILD/mono-2.6.1/mcs/class/System.Drawing/System.Drawing/Icon.cs:795 
  at System.Drawing.Icon..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context) [0x000ad] in
/private/tmp/monobuild/build/BUILD/mono-2.6.1/mcs/class/System.Drawing/System.Drawing/Icon.cs:229 
  at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- 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] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] in <filename unknown>:0 
  at System.Runtime.Serialization.ObjectRecord.LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context) [0x00000] in <filename unknown>:0 
  at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000] in
<filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00000] in <filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders,
System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers)
[0x00000] in <filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in
<filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000] in <filename unknown>:0 
  at System.Resources.ResourceReader.ReadNonPredefinedValue (System.Type
exp_type) [0x00000] in <filename unknown>:0 
  at System.Resources.ResourceReader.ReadValueVer2 (Int32 type_index)
[0x00000] in <filename unknown>:0 
  at System.Resources.ResourceReader.LoadResourceValues
(.ResourceCacheItem[] store) [0x00000] in <filename unknown>:0 
  at System.Resources.ResourceReader+ResourceEnumerator.FillCache ()
[0x00000] in <filename unknown>:0 
  at System.Resources.ResourceReader+ResourceEnumerator..ctor
(System.Resources.ResourceReader readerToEnumerate) [0x00000] in <filename
unknown>:0 
  at System.Resources.ResourceReader.GetEnumerator () [0x00000] in <filename
unknown>:0 
  at System.Resources.ResourceSet.ReadResources () [0x00000] in <filename
unknown>:0 
  at System.Resources.ResourceSet.GetObjectInternal (System.String name,
Boolean ignoreCase) [0x00000] in <filename unknown>:0 
  at System.Resources.ResourceSet.GetObject (System.String name, Boolean
ignoreCase) [0x00000] in <filename unknown>:0 
  at System.Resources.RuntimeResourceSet.GetObject (System.String name,
Boolean ignoreCase) [0x00000] in <filename unknown>:0 
  at System.Resources.ResourceManager.GetObject (System.String name,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 



-- 
View this message in context: http://n4.nabble.com/Runtime-error-running-WinForms-app-on-Mac-OS-X-tp1582802p1582802.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.