Position Sizer 3.17 freezes when switching timeframes in MT5 — memory leaks
Hello,
I am experiencing recurring issues with Position Sizer.
My current configuration is:
- Windows 11.
- MetaTrader 5, build 6230.
- Broker: IC Trading.
- USD demo account.
- Position Sizer 3.17, compiled in Spanish with zero errors and zero warnings.
- Six Forex charts running simultaneously.
The problem also occurred with version 3.11.
When switching between timeframes, the Position Sizer panel sometimes becomes completely unresponsive while the chart continues updating. On other occasions, the chart freezes while Position Sizer remains responsive.
I have tested the EA on a clean chart and progressively added my usual indicators. The problem is intermittent.
The following warnings appeared in the Experts log:
- 332 leaked strings left.
- 1005 undeleted dynamic objects found.
- 1 object of class 'CPositionSizeCalculator'.
- 146560 bytes of leaked memory found.
Similar warnings have appeared on EURUSD, EURAUD and CHFJPY.
Could this be related to the deinitialization process when switching timeframes?
Is there a known solution, or would you recommend any additional diagnostic tests?
Thank you for your assistance.