Jonny Högsten - 2018-09-02

Hi,i launched BasEdit via mono and it opens up the editor just fine but crashes when opening a prg file.
Was wondering if you could take a look at the output here and maybe see if there's anything that can be leveraged to make it work?

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

Unhandled Exception:
System.ArgumentException: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'.
Parameter name: bytes
  at System.Text.Encoding.ThrowBytesOverflow () <0x7f75da635aa0 + 0x00091> in <2943701620b54f86b436d3ffad010412>:0 
  at System.Text.UTF8Encoding.GetBytes (System.Char* chars, System.Int32 charCount, System.Byte* bytes, System.Int32 byteCount, System.Text.EncoderNLS baseEncoder) <0x7f75da644830 + 0x0079c> in <2943701620b54f86b436d3ffad010412>:0 
  at System.Text.UTF8Encoding.GetBytes (System.Char[] chars, System.Int32 charIndex, System.Int32 charCount, System.Byte[] bytes, System.Int32 byteIndex) <0x7f75da643b90 + 0x000e1> in <2943701620b54f86b436d3ffad010412>:0 
  at Microsoft.VisualBasic.Strings.Asc (System.Char String) [0x00062] in <863c6225f7b74f2395378c919502f540>:0 
  at Microsoft.VisualBasic.Strings.Asc (System.String String) [0x00041] in <863c6225f7b74f2395378c919502f540>:0 
  at BasEdit.frmMain.ShowOneLine (System.Drawing.Graphics myGraphic, System.String Zeile, System.Int32 y, System.Boolean ShowSpace) [0x000c2] in <32b600992247400dbd6929c1c5c3143f>:0 
  at (wrapper remoting-invoke-with-check) BasEdit.frmMain.ShowOneLine(System.Drawing.Graphics,string,int,bool)
  at BasEdit.frmMain.ShowText () [0x00114] in <32b600992247400dbd6929c1c5c3143f>:0 
  at (wrapper remoting-invoke-with-check) BasEdit.frmMain.ShowText()
  at BasEdit.frmMain.Timer1_Tick (System.Object sender, System.EventArgs e) [0x000a6] in <32b600992247400dbd6929c1c5c3143f>:0 
  at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x00008] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Timer.cs:155 
  at System.Windows.Forms.Timer.FireTick () [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Timer.cs:148 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer.FireTick()
  at System.Windows.Forms.XplatUIX11.CheckTimers (System.Collections.ArrayList timers, System.DateTime now) [0x00083] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1530 
  at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue, System.Boolean allowIdle) [0x00181] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1751 
  at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1692 
  at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr handle, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x0001c] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3986 
  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUI.cs:724 
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x0034a] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs:824 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs:696 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs:679 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00041] in <863c6225f7b74f2395378c919502f540>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <863c6225f7b74f2395378c919502f540>:0 
  at BasEdit.My.MyApplication.Main (System.String[] Args) [0x00012] in <32b600992247400dbd6929c1c5c3143f>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'.
Parameter name: bytes
  at System.Text.Encoding.ThrowBytesOverflow () <0x7f75da635aa0 + 0x00091> in <2943701620b54f86b436d3ffad010412>:0 
  at System.Text.UTF8Encoding.GetBytes (System.Char* chars, System.Int32 charCount, System.Byte* bytes, System.Int32 byteCount, System.Text.EncoderNLS baseEncoder) <0x7f75da644830 + 0x0079c> in <2943701620b54f86b436d3ffad010412>:0 
  at System.Text.UTF8Encoding.GetBytes (System.Char[] chars, System.Int32 charIndex, System.Int32 charCount, System.Byte[] bytes, System.Int32 byteIndex) <0x7f75da643b90 + 0x000e1> in <2943701620b54f86b436d3ffad010412>:0 
  at Microsoft.VisualBasic.Strings.Asc (System.Char String) [0x00062] in <863c6225f7b74f2395378c919502f540>:0 
  at Microsoft.VisualBasic.Strings.Asc (System.String String) [0x00041] in <863c6225f7b74f2395378c919502f540>:0 
  at BasEdit.frmMain.ShowOneLine (System.Drawing.Graphics myGraphic, System.String Zeile, System.Int32 y, System.Boolean ShowSpace) [0x000c2] in <32b600992247400dbd6929c1c5c3143f>:0 
  at (wrapper remoting-invoke-with-check) BasEdit.frmMain.ShowOneLine(System.Drawing.Graphics,string,int,bool)
  at BasEdit.frmMain.ShowText () [0x00114] in <32b600992247400dbd6929c1c5c3143f>:0 
  at (wrapper remoting-invoke-with-check) BasEdit.frmMain.ShowText()
  at BasEdit.frmMain.Timer1_Tick (System.Object sender, System.EventArgs e) [0x000a6] in <32b600992247400dbd6929c1c5c3143f>:0 
  at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x00008] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Timer.cs:155 
  at System.Windows.Forms.Timer.FireTick () [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Timer.cs:148 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer.FireTick()
  at System.Windows.Forms.XplatUIX11.CheckTimers (System.Collections.ArrayList timers, System.DateTime now) [0x00083] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1530 
  at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue, System.Boolean allowIdle) [0x00181] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1751 
  at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1692 
  at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr handle, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x0001c] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3986 
  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUI.cs:724 
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x0034a] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs:824 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs:696 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in /build/mono-5.14.0.177/mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs:679 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00041] in <863c6225f7b74f2395378c919502f540>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <863c6225f7b74f2395378c919502f540>:0 
  at BasEdit.My.MyApplication.Main (System.String[] Args) [0x00012] in <32b600992247400dbd6929c1c5c3143f>:0