PDA

View Full Version : Debugging with VS8 NT closes suddenly


Jonas
10-24-2009, 07:53 AM
Debugging the startegy with VS2008, the NT suddenly closes (NT says nothing). When I open NT again, when I move the mouse over the chart, the error window popups and NT requests to reboot the app. Here the trace.


2009-10-24 15:37:31:671 ApplicationStart done, took 17,1 secs
2009-10-24 15:37:51:203 in OnUnhandledThreadException
2009-10-24 15:37:51:203 ********* exception trapped *********
2009-10-24 15:37:51:203 El parĂ¡metro no es vĂ¡lido.
2009-10-24 15:37:51:203 en System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
en System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
en NinjaTrader.Gui.Chart.ChartPanel.CrossHairYSet(Gra phics graphics)
en NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
en NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
en System.Windows.Forms.Control.OnMouseMove(MouseEven tArgs e)
en System.Windows.Forms.Control.WmMouseMove(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
en System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
(if I move the mouse to the close button, without moving it over the chart window, I can close the window, but I cannot save the workspace (I can, but without effect), I must do it without the error, moving the mouse outside the chart as soon as I open the app)

NinjaTrader_Ray
10-24-2009, 09:02 AM
Thanks for reporting.

NinjaTrader_Dierk
10-24-2009, 09:17 AM
Hmm .. I'm not sure if VS2008 introduced some issue to that scenario.

Would you have a reproducible scenario WITHOUT using VS? Thanks

Jonas
10-24-2009, 12:57 PM
Hi !
In my PC: Untitled1 Workspace empty: new chart, EUR/USD, Cursor Cross Hair, in Y Axis properties Vertical Grid Lines to 0,001. Close NT and yes to save Untitled1. In the open the same error as post#1.
If I do the same with USD/JPY the NT freezes in the open.

Thanx !

NinjaTrader_Dierk
10-25-2009, 03:28 AM
I can reproduce. Excellent! Thanks for reporting that bug.

NinjaTrader_Christian
10-26-2009, 03:10 AM
Hi Jonas !

This bug is fixed and will be available in one of the next updates of NinjaTrader 7.

Thanks for reporting,
Christian