Memory leaks at mql4 when new object is created when initialising of class member at constructor time
It is a compiler bug, resulting in the destructor not being call for temporary object. It has been fixed in recent ME build (around 2230) for mql5. Not sure if (and when) they will make it available for MT4.
A temporary object is created here :
return objtmp;
So actually this bug occurs because you don't use pointers.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I get memory leaks warnings at Mt4 "Experts" tab when I changed timeframe.
I'm using mql4.
To reproduce this issue just create simple indicator and paste this code.
There is no any dynamic memory allocation. Why does this happen?