kprager222 / Publications
Forum
Critical bug: MT5 seems to corrupt dynamic memory upon SymbolPeriod switch. Code attached.
MT5 version 5.00 build 5062 on 3 Jun 2025 Code to reproduce attached. I have discovered that MT5 overwrites any dynamically- created object 's member that contains the name of the <current chart symbol> with a <new chart symbol> when ChartSetSymbolPeriod(ChartID(), <new symbol>, _Period) is called