View Full Version : Format Data Series Unhandled Exception on startDate = lastDate
I had a chart up and decided to change the date range (while using NinjaTrader 6.0.1000.1.)
So I clicked on "Format Data Series", and changed the Start date and Last Date to both be 4/29/2007.
I got the following error:
<<Screen snapshot in a later posting>>
I had the idea that this might be acceptable, since having the start date = end date can be done in the Strategy Analyzer parameter screen.
I clicked on Continue, then tried again setting the end date to 4/21/2007 but NinjaTrader completely aborted about 1/2 minute later.
After restarting NinjaTrader, I tried the same sequence again but the abort did not repeat. I suggest that a friendlier message than "Unhandled Exception" might prevent such nastiness.
KBJ
Is there any way to restore a prior edit?
When I edited the prior message to clarify it somewhat, this WowBB software lost the screen capture that I had of the error pop up which displayed before NinjaTrader aborted.
The pop up effectively said that there was an "Unhandled Exception" and that it was related to the condition of the last date being before the start date (or the start date being after the last date -- I don't remember how it was phrased.)
KBJ
I found a deleted copy of the screen shot....
http://us.mg1.mail.yahoo.com/ya/download?fid=Trash&mid=1_535_AH1Fv9EAAGVcRjOB3wLvN TB%2FjrU&pid=2&tnef=&YY=1177812878268&newid=1&clea n=0&inline=1
KBJ
NinjaTrader_Dierk
04-28-2007, 05:23 PM
We will look into that. Please post the screenshot if you can reproduce.
Thanks
Something keeps deleting my screen shots. Here it is again...
http://us.mg1.mail.yahoo.com/ya/download?fid=Inbox&mid=1_1990009_AHtFv9EAAHXBRjP%2 FlQUOWxfQFF8&pid=2&tnef=&YY=1177997162854&newid=1& clean=0&inline=1
KBJ
NinjaTrader_Dierk
04-30-2007, 05:36 PM
Screenshot still not there. I suggest attaching as zip file.
NinjaTrader_Dierk
04-30-2007, 06:55 PM
Great.
Now can you reproduce and press the Deatils button and paste the first ~30 lines.
Thanks
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ApplicationException: startDate > lastDate
at NinjaTrader.Gui.Chart.ChartControl.PeriodSettings. .ctor(PeriodType periodType, Int32 periodValue, DateTime startDate, DateTime lastDate)
at NinjaTrader.Gui.Chart.FormatDataSeries.GetPeriodSe ttingsFromDialog()
at NinjaTrader.Gui.Chart.FormatDataSeries.OnOk(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
NinjaTrader
Assembly Version: 6.0.1000.1
Win32 Version: 6.0.1000.1
CodeBase: file:///C:/Program%20Files/NinjaTrader%206/bin/NinjaTrader.exe
----------------------------------------
etc.
The "unhandled exception" is reproduceable (as above.) The abort of NinjaTrader which occurred only happened once.
KBJ
NinjaTrader_Dierk
04-30-2007, 08:39 PM
Thanks, we'll fix that for next update.