Topic: Getting Forex Strategy Builder to run on Linux
Hi,
First of all, I'd like to thank Popov for such a nice software.
I'm trying to get FSB to run on Linux via Mono (http://www.go-mono.com/mono-downloads/download.html); there's also a Mono version for windows from the above link.
After very minor changes (case issues), I'm able to build FSB on Mono. But when I tried to run, it gave the following error messages:
$ mono Forex\ Strategy\ Builder.exe
Could not get XIM
System.ArgumentNullException: Argument cannot be null.
Parameter name: brush
at System.Drawing.Graphics.DrawString (System.String s, System.Drawing.Font font, System.Drawing.Brush brush, RectangleF layoutRectangle, System.Drawing.StringFormat format) [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:DrawString (string,System.Drawing.Font,System.Drawing.Brush,System.Drawing.RectangleF,System.Drawing.StringFormat)
at Forex_Strategy_Builder.Journal_Ord.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000]
at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
System.ArgumentNullException: Argument cannot be null
Unhandled Exception: System.NotSupportedException: Either the image format is unknown or you don't have the required libraries to decode this format [GDI+ status: UnknownImageFormat]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000]
at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean keepAlive) [0x00000]
at System.Drawing.Icon.GetInternalBitmap () [0x00000]
at System.Drawing.Icon.ToBitmap () [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd hwnd, System.Drawing.Icon icon) [0x00000]
at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x00000]
at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x00000]
at System.Windows.Forms.Form.set_Icon (System.Drawing.Icon value) [0x00000]
at Forex_Strategy_Builder.Actions..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) Forex_Strategy_Builder.Actions:.ctor ()
at Forex_Strategy_Builder.Actions.Main () [0x00000]
Could someone have a look at this? Thanks
ps: there's a Mono Migration Analyzer (MoMA) tool (http://www.mono-project.com/MoMA) which helps porting to Mono.