I attached a zip file with only the strategy code necessary to reproduce the memory leak.
How to reproduce: The onBarUpdate() does nothing whatsoever. However, the Initialize function simply adds a second data series and an indicator and gobbles memory like crazy!
protected override void Initialize() { // This line creates a HUMONGOUS memory leak. // It adds on 30 or 40 Megabytes to memory every time // you modify the strategy. I tested it by moving the // slider on Market Replay since. This happens when running // real time on the market. In a hour or so it eats up // over 1 gig of memory till it kills the PC. Add(PeriodType.Second, 1); // If you comment out the above line, this one also creates // a memory leak. But this indicator by itself on the chart // never creates any memory leak. This leads me to believe // that the Add() function itself mismanages memory. Add(Previous10MinsOHLM()); }
Even worse, the Add() function that adds a second data source creates a 30 to 40 meg leak every time you reload the script.
Another way to test, when I run the Market Replay, every time you move the slider, it gobbles another 40 meg of memory.
Where I original observed this was during running with real time data. It also periodically gobbles another 30 or 40 meg of memory.
This makes multi-frame totally unusable. Please, I need this feature. When can you fix it? Do you have a bug fix release? Have you fixed it already?
Sincerely,
Wayne
Comment