I'm dev a system for automating trading, and spend many times lasts days for search why i have corrupted heap when doing intensive market replay.
So after eliminate all others possibles causes of this like native libraries i'm using, i'm stay only whith NT7, because the only way to make heap corruption in c# is to have a thread safe code problem, and i'm cutting too all users interfaces using multithreading in my application.
So for be sure, i'm write a simple strategy code who doing similare intensive trades than my real strategy, without using nothing else than Ninja trader himself and the embeded compiler.
The result is NT7 have Heap corruption problems, from native code or multithreading thread safe problem on NT7 c# code.
I'm re-install totaly Ninjatrader 7 for repeat the test before post here.
For reproduce the problem, i'm attached a simple strategy code and a realLineBreak chart type.
Run the replay on RealLineBreak chart Period Type : Tick, periode value 1 break 28.
After some day of data replaying, you must have a heap corruption.
It's seem more rapide to have with many flood on output windows.
I'm really need a solution about this.
Thanks
Comment