I was trying to get the desktop graphing working as described in the link below. I get an error that the file ../../../UserInterface/bin/Debug/QuantConnect.Views.exe does not exist. That file does indeed not exist and does not seem to be configured as a target for the build.
I changed the path to be an absolute path to the Release build of QuantConnect.Views.exe which is included in the git repo.
After that I get this error and I'm lost:
WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Screen..cctor () [0x00034] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <98fac219bd4e453693d76fda7bd96ab0>:0
at <unknown> <0xffffffff>
at System.Windows.Forms.Hwnd.GetNextStackedFormLocation (System.Windows.Forms.CreateParams) [0x0003e] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.CreateWindow (System.Windows.Forms.CreateParams) [0x000d8] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) [0x00009] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Control.CreateHandle () [0x00031] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Form.CenterToScreen () [0x00010] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at QuantConnect.Views.WinForms.LeanWinForm..ctor () [0x0000c] in <6b3ac7c2411a4d88ad38def132e7e820>:0
at (wrapper remoting-invoke-with-check) QuantConnect.Views.WinForms.LeanWinForm..ctor () [0x00018] in <6b3ac7c2411a4d88ad38def132e7e820>:0
at QuantConnect.Views.Program.Main (string[]) [0x00005] in <6b3ac7c2411a4d88ad38def132e7e820>:0
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x0004e] in <6b3ac7c2411a4d88ad38def132e7e820>:0
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.Screen' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds(intptr)
at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Screen..cctor () [0x00034] in <556a6ba2c0a546f1ad2318c309ce0945>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Hwnd.GetNextStackedFormLocation (System.Windows.Forms.CreateParams cp) [0x0003e] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.CreateWindow (System.Windows.Forms.CreateParams cp) [0x000d8] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00009] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Control.CreateHandle () [0x00031] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Form.CenterToScreen () [0x00010] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at QuantConnect.Views.WinForms.LeanWinForm..ctor () [0x0000c] in <6b3ac7c2411a4d88ad38def132e7e820>:0
at (wrapper remoting-invoke-with-check) QuantConnect.Views.WinForms.LeanWinForm..ctor()
at QuantConnect.Views.Program.Main (System.String[] args) [0x00005] in <6b3ac7c2411a4d88ad38def132e7e820>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.Screen' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds(intptr)
at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Screen..cctor () [0x00034] in <556a6ba2c0a546f1ad2318c309ce0945>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Hwnd.GetNextStackedFormLocation (System.Windows.Forms.CreateParams cp) [0x0003e] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUICarbon.CreateWindow (System.Windows.Forms.CreateParams cp) [0x000d8] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00009] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Control.CreateHandle () [0x00031] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at System.Windows.Forms.Form.CenterToScreen () [0x00010] in <556a6ba2c0a546f1ad2318c309ce0945>:0
at QuantConnect.Views.WinForms.LeanWinForm..ctor () [0x0000c] in <6b3ac7c2411a4d88ad38def132e7e820>:0
at (wrapper remoting-invoke-with-check) QuantConnect.Views.WinForms.LeanWinForm..ctor()
at QuantConnect.Views.Program.Main (System.String[] args) [0x00005] in <6b3ac7c2411a4d88ad38def132e7e820>:0
Jared Broad
Hi Alex; sorry due to Winforms support being so sporadic we no longer support this desktop GUI and are working on an Electron replacement instead. For now please use the website IDE or the LEAN CLI.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Alex Neth
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!