{"action":"created","issue":{"url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan/issues/19","repository_url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan","labels_url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan/issues/19/comments","events_url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan/issues/19/events","html_url":"https://github.com/Wulf2k/DaS-PC-MPChan/issues/19","id":152909037,"number":19,"title":"[Test version] Doesn't launch under wine","user":{"login":"exbb2","id":450507,"avatar_url":"https://avatars.githubusercontent.com/u/450507?v=3","gravatar_id":"","url":"https://api.github.com/users/exbb2","html_url":"https://github.com/exbb2","followers_url":"https://api.github.com/users/exbb2/followers","following_url":"https://api.github.com/users/exbb2/following{/other_user}","gists_url":"https://api.github.com/users/exbb2/gists{/gist_id}","starred_url":"https://api.github.com/users/exbb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exbb2/subscriptions","organizations_url":"https://api.github.com/users/exbb2/orgs","repos_url":"https://api.github.com/users/exbb2/repos","events_url":"https://api.github.com/users/exbb2/events{/privacy}","received_events_url":"https://api.github.com/users/exbb2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-04T01:10:37Z","updated_at":"2016-05-05T06:20:51Z","closed_at":null,"body":"Error message when trying to launch with .NET 4.5:\r\n\r\n```\r\nUnhandled Exception: System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details.  The error is: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Invalid window handle\r\n   at System.Drawing.Icon.Initialize(Int32 width, Int32 height)\r\n   at System.Drawing.Icon..ctor(SerializationInfo info, StreamingContext context)\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.SerializationInvoke(IRuntimeMethodInfo method, Object target, SerializationInfo info, StreamingContext& context)\r\n   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)\r\n   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)\r\n   at System.Runtime.Serialization.ObjectManager.DoFixups()\r\n   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)\r\n   at System.Resources.ResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)\r\n   at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)\r\n   at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)\r\n   at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)\r\n   at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)\r\n   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)\r\n   at System.Resources.ResourceManager.GetObject(String name)\r\n   at DSCM.DSCM.InitializeComponent()\r\n   at DSCM.DSCM..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at DSCM.My.MyProject.MyForms.Create__Instance__[T](T Instance)\r\n   at DSCM.My.MyProject.MyForms.get_DSCM()\r\n   at DSCM.My.MyApplication.OnCreateMainForm()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n   at DSCM.My.MyApplication.Main(String[] Args)\r\n```\r\n\r\nError message when trying to launch with Wine-Mono:\r\n\r\n```\r\nUnhandled Exception:\r\nSystem.InvalidOperationException: WinForms_SeeInnerException ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: No valid icon entry were found.\r\n  at System.Drawing.Icon.InitFromStreamWithSize (System.IO.Stream stream, Int32 width, Int32 height) <0x1d0c8b0 + 0x00d27> in <filename unknown>:0 \r\n  at System.Drawing.Icon..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) <0x1d9a048 + 0x001bf> in <filename unknown>:0 \r\n  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)\r\n  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x1d08ec8 + 0x00033> in <filename unknown>:0 \r\n  --- End of inner exception stack trace ---\r\n  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x1d08ec8 + ')\r\n```"},"comment":{"url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan/issues/comments/217083810","html_url":"https://github.com/Wulf2k/DaS-PC-MPChan/issues/19#issuecomment-217083810","issue_url":"https://api.github.com/repos/Wulf2k/DaS-PC-MPChan/issues/19","id":217083810,"user":{"login":"exbb2","id":450507,"avatar_url":"https://avatars.githubusercontent.com/u/450507?v=3","gravatar_id":"","url":"https://api.github.com/users/exbb2","html_url":"https://github.com/exbb2","followers_url":"https://api.github.com/users/exbb2/followers","following_url":"https://api.github.com/users/exbb2/following{/other_user}","gists_url":"https://api.github.com/users/exbb2/gists{/gist_id}","starred_url":"https://api.github.com/users/exbb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exbb2/subscriptions","organizations_url":"https://api.github.com/users/exbb2/orgs","repos_url":"https://api.github.com/users/exbb2/repos","events_url":"https://api.github.com/users/exbb2/events{/privacy}","received_events_url":"https://api.github.com/users/exbb2/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T06:20:51Z","updated_at":"2016-05-05T06:20:51Z","body":"05-04-22 version crashes with same error messages. It's probably not the icon that was forcing the crash — other .Net programs with icons work fine. Maybe you have different parameters for Debug and Release builds? \r\n\r\n```\r\nUnhandled Exception: System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details.  The error is: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Invalid window handle\r\n   at System.Drawing.Icon.Initialize(Int32 width, Int32 height)\r\n   at System.Drawing.Icon..ctor(SerializationInfo info, StreamingContext context)\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.SerializationInvoke(IRuntimeMethodInfo method, Object target, SerializationInfo info, StreamingContext& context)\r\n   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)\r\n   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)\r\n   at System.Runtime.Serialization.ObjectManager.DoFixups()\r\n   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)\r\n   at System.Resources.ResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)\r\n   at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)\r\n   at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)\r\n   at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)\r\n   at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)\r\n   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)\r\n   at System.Resources.ResourceManager.GetObject(String name)\r\n   at DSCM.DSCM.InitializeComponent()\r\n   at DSCM.DSCM..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at DSCM.My.MyProject.MyForms.Create__Instance__[T](T Instance)\r\n   at DSCM.My.MyProject.MyForms.get_DSCM()\r\n   at DSCM.My.MyApplication.OnCreateMainForm()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n   at DSCM.My.MyApplication.Main(String[] Args)\r\n```\r\n\r\n```\r\nUnhandled Exception:\r\nSystem.InvalidOperationException: WinForms_SeeInnerException ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: No valid icon entry were found.\r\n  at System.Drawing.Icon.InitFromStreamWithSize (System.IO.Stream stream, Int32 width, Int32 height) <0x1d0bde0 + 0x00d27> in <filename unknown>:0 \r\n  at System.Drawing.Icon..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) <0x1d99cc0 + 0x001bf> in <filename unknown>:0 \r\n  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)\r\n  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x1d08db8 + 0x00033> in <filename unknown>:0 \r\n  --- End of inner exception stack trace ---\r\n  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x1d08db8 + ')\r\n```"}}