0 Members and 3 Guests are viewing this topic.
albert@albert-PC ~/TICalc/BexIDE1.1 $ mono bexide.exeSystem.NullReferenceException: Object reference not set to an instance of an object at ICSharpCode.TextEditor.TextAreaControl.AdjustScrollBars () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) ICSharpCode.TextEditor.TextAreaControl:AdjustScrollBars () at ICSharpCode.TextEditor.TextArea.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
@albert: Darn at least the file accessing thing was fixed lol. All those errors seem to just be with the editor, so I could try to just make a forked release that just uses a modified RichTextBox for Linux.
Quote from: BlakPilar on December 28, 2011, 01:32:35 pm@albert: Darn at least the file accessing thing was fixed lol. All those errors seem to just be with the editor, so I could try to just make a forked release that just uses a modified RichTextBox for Linux.Or... you can use Mono.Texteditor! (A RichTextBox seems.... uncode-y )Mono.TextEditor is from MonoDevelop, which is forked from SharpDevelop... and you guessed it, contains the ICSharpCode.TextEditor library! So technically, Mono.TextEditor should be similar in API.In .NET, are you allowed to do conditional library imports? That way, you don't have to fork the code and worry about two platform codes.
Hmm... I have Mono setup on my desktop, so methinks I'll have to look into that. And I'm not sure about conditional imports, but the way I'm setting up the tabs, I could probably do something different for the editor per tab. Does Mono define some kind of unique pre-processor token? If it does, I could just check against that.
#if __MonoCS__ //mono specific code#else //other code#endif