![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Aug 2008
Posts: 102
Thanks: 3
Thanked 2 times in 1 post
|
Hello
i'm having a serious issue with an indicator i made for 6.5 and that makes 7 crash. Since i don't have symbols i can't really look more into it. I can send you the indicator by mail so you can test it . Its pretty basic, works on its own. But when used from within a strategy , it just crashes ninja. Code:
---- Assert Short Message ----
IndicatorBase.InputInitialize
---- Assert Long Message ----
at IndicatorBase.InputInitialize()
at StrategyBase.SetInput(Bars[] newBarsArray)
at ChartControl.Add(StrategyBase strategyTemplate)
at ChartStrategies.Apply()
at ChartStrategies.OnOkButtonClick(Object sender, EventArgs e)
at Control.OnClick(EventArgs e)
at Button.OnClick(EventArgs e)
at Button.OnMouseUp(MouseEventArgs mevent)
at Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at Control.WndProc(Message& m)
at ButtonBase.WndProc(Message& m)
at Button.WndProc(Message& m)
at ControlNativeWindow.OnMessage(Message& m)
at ControlNativeWindow.WndProc(Message& m)
at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Application.RunDialog(Form form)
at Form.ShowDialog(IWin32Window owner)
at Form.ShowDialog()
at ChartControl.OnMenuItem(Object sender, EventArgs e)
at ToolStripItem.RaiseEvent(Object key, EventArgs e)
at ToolStripMenuItem.OnClick(EventArgs e)
at ToolStripItem.HandleClick(EventArgs e)
at ToolStripItem.HandleMouseUp(MouseEventArgs e)
at ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at ToolStrip.OnMouseUp(MouseEventArgs mea)
at ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at Control.WndProc(Message& m)
at ScrollableControl.WndProc(Message& m)
at ToolStrip.WndProc(Message& m)
at ToolStripDropDown.WndProc(Message& m)
at ControlNativeWindow.OnMessage(Message& m)
at ControlNativeWindow.WndProc(Message& m)
at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Application.Run()
at NTMain.Main()
2010-08-23 16:55:01:062 ---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
barsArray[0] == null
---- Assert Long Message ----
at IndicatorBase.InputInitialize()
at StrategyBase.SetInput(Bars[] newBarsArray)
at ChartControl.Add(StrategyBase strategyTemplate)
at ChartStrategies.Apply()
at ChartStrategies.OnOkButtonClick(Object sender, EventArgs e)
at Control.OnClick(EventArgs e)
at Button.OnClick(EventArgs e)
at Button.OnMouseUp(MouseEventArgs mevent)
at Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at Control.WndProc(Message& m)
at ButtonBase.WndProc(Message& m)
at Button.WndProc(Message& m)
at ControlNativeWindow.OnMessage(Message& m)
at ControlNativeWindow.WndProc(Message& m)
at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Application.RunDialog(Form form)
at Form.ShowDialog(IWin32Window owner)
at Form.ShowDialog()
at ChartControl.OnMenuItem(Object sender, EventArgs e)
at ToolStripItem.RaiseEvent(Object key, EventArgs e)
at ToolStripMenuItem.OnClick(EventArgs e)
at ToolStripItem.HandleClick(EventArgs e)
at ToolStripItem.HandleMouseUp(MouseEventArgs e)
at ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at ToolStrip.OnMouseUp(MouseEventArgs mea)
at ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at Control.WndProc(Message& m)
at ScrollableControl.WndProc(Message& m)
at ToolStrip.WndProc(Message& m)
at ToolStripDropDown.WndProc(Message& m)
at ControlNativeWindow.OnMessage(Message& m)
at ControlNativeWindow.WndProc(Message& m)
at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Application.Run()
at NTMain.Main()
2010-08-23 16:55:02:406 in OnUnhandledThreadException
2010-08-23 16:55:02:406 ********* exception trapped *********
2010-08-23 16:55:02:406 Object reference not set to an instance of an object.
2010-08-23 16:55:02:421 at NinjaTrader.Indicator.IndicatorBase.InputInitialize()
at NinjaTrader.Strategy.StrategyBase.SetInput(Bars[] newBarsArray)
at NinjaTrader.Gui.Chart.ChartControl.Add(StrategyBase strategyTemplate)
at NinjaTrader.Gui.Chart.ChartStrategies.Apply()
at NinjaTrader.Gui.Chart.ChartStrategies.OnOkButtonClick(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(MouseEventArgs 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.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
What ticket number did you get when you sent in the note to support as I do not see it here. We would need to test this with youy NinjaScript. I look forward to assisting you further.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2008
Posts: 102
Thanks: 3
Thanked 2 times in 1 post
|
I just sent it now.
ticket : 358862 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Got it, I will look into this and get back to you via email. Thank you for your patience.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
zark.be,
The issue is that your code uses this line: uOHLC = new UOHLC(); You do not need the "new" in there. Just do uOHLC = UOHLC();
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Aug 2008
Posts: 102
Thanks: 3
Thanked 2 times in 1 post
|
indeed that solves it. force of habit
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| migrating templates from 6.5 | saroj | Version 7 Beta General Questions & Bug Reports | 5 | 05-09-2010 02:46 PM |
| Migrating Data From NinjaTrader 6.5 to 7 | NinjaTrader_Ray | Critical Information - Please review | 0 | 10-02-2009 10:57 AM |
| Migrating from one computer to another | tradinginzen | Miscellaneous Support | 2 | 02-16-2009 09:12 AM |
| MIgrating a third-party indicator | daven | Indicator Development | 3 | 06-03-2008 06:10 AM |
| Migrating from 6 to 6.5 | carrmcc | Historical NinjaTrader 6.5 Beta Threads | 3 | 03-08-2008 02:44 AM |