Most of the time I get a windows error that says the "Ninjatrader application has stopped working" (see attached image). When I check the trace files then it has the following:
2012-04-23 23:30:57:428 *************** unhandled exception trapped ***************
2012-04-23 23:30:57:428 Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
2012-04-23 23:30:57:428 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Data.SqlServerCe.NativeMethods.CoTaskMemFre e(IntPtr ptr)
at System.Data.SqlServerCe.Accessor.Dispose()
at System.Data.SqlServerCe.Accessor.Finalize()
Then other times it simply stops playing in the middle of the run... clicking play does not make it start to progress again... it requires me shutting the app down and restarting it.
When this happens the traces shows an error like this:
2012-04-28 03:47:45:390 *************** unhandled exception trapped ***************
2012-04-28 03:47:45:390 Object reference not set to an instance of an object.
2012-04-28 03:47:45:390 at NinjaTrader.Cbi.Position.Close(String signalName)
at NinjaTrader.Strategy.StrategyBase.EventuallyExitOn Close()
at NinjaTrader.Cbi.Connection.OnTimerTick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndPr oc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2012-04-28 08:17:50:780 Connection to NinjaTrader data server lost: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
at NinjaTrader.Server.Client.Receive()
at NinjaTrader.Server.Client.Loop()
2012-04-28 08:17:50:780 ERROR: Connection to NinjaTrader historical market data server lost: An existing connection was forcibly closed by the remote host
2012-04-28 08:18:00:795 Server.Client.Loop0-1: 64.202.118.179/31654
2012-04-28 08:18:24:460 Server.Client.Close
I do not have anything complicated in the strategy... and nothing that wasn't working before. I started having this happen interittently about 2 or 3 weeks ago. It has gradually become more and more frequent until now none of my maret replays complete. I was running NT 7.0.1000.9, so last week I upgraded to 7.0.1000.10 and no change. I also ran windows update and updated all the SQL Server updates. I have rebooted... nothing seems to work.
Attached are my trace logs zipped up (to get below the 1MB attachment restriction)
Also... I have tried closing everything else in windows. I have plenty of ram and processing power (2.67Ghz Core2 Quad CPU, 8GB RAM, Windows 7)
Any suggestions would be greatly appreciated.
Comment