7.0.1000.4 NT is crashing with the following exceptions in the trace logs:
2011-03-19 20:36:52:546 (Market Replay Connection) Cbi.AccountUpdateEventArgs.Process: Account='Replay101' ItemType='InitialMargin' Currency='Unknown' Value=500 2011-03-19 20:36:52:776 in OnUnhandledApplicationException 2011-03-19 20:36:52:793 ********* exception trapped ********* 2011-03-19 20:36:52:793 Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 2011-03-19 20:36:52:793 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Data.SqlServerCe.NativeMethods.CoTaskMemFree(IntPtr ptr) at System.Data.SqlServerCe.Accessor.Dispose() at System.Data.SqlServerCe.Accessor.Finalize()
2011-03-20 02:41:05:522 (Market Replay Connection) Cbi.AccountUpdateEventArgs.Process: Account='Replay101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=-5818.79999999987 2011-03-20 02:41:07:378 in OnUnhandledApplicationException 2011-03-20 02:41:07:422 ********* exception trapped ********* 2011-03-20 02:41:07:422 Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 2011-03-20 02:41:07:422 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Data.SqlServerCe.NativeMethods.CoTaskMemFree(IntPtr ptr) at System.Data.SqlServerCe.Accessor.Dispose() at System.Data.SqlServerCe.SqlCeCommand.CloseInternalCommand() at System.Data.SqlServerCe.SqlCeCommand.set_Transaction(SqlCeTransaction value) at System.Data.SqlServerCe.SqlCeConnection.ObjectLifeTimeTracker.Zombie(SqlCeTransaction tx) at System.Data.SqlServerCe.SqlCeConnection.Zombie(SqlCeTransaction tx) at System.Data.SqlServerCe.SqlCeTransaction.Commit(CommitMode mode) at System.Data.SqlServerCe.SqlCeTransaction.Commit() at Wilson.ORMapper.Transaction.Commit() at NinjaTrader.Db.Globals.DBThreadProc() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
I was able to reproduce this with multiple instances (6 for example) of the attached strategy using Market Replay running at max speed on CL instrument, 10 Range bars. I also randomized the strategy parameters a bit using 10,20,30,40,etc for trailstopticks parameter.
Attached please find the strategy to reproduce (use multiple!) and a trace log. I removed a large portion of the entries from the middle of the log to reduce its size.
Regards,
Tim.
Comment