So don't do that.
So don't do that.
I wrote a GUI object, in the Dialog.mqh file, the CAPPDialog.Destory() function called ExpertRemove() function, when I use Destory() in the OnDeinit(), it will warn me "7 leaked string left", but if I don't call Destory() in OnDeinit(), the chart will have more than one GUI object.
I wrote a GUI object, in the Dialog.mqh file, the CAPPDialog.Destory() function called ExpertRemove() function, when I use Destory() in the OnDeinit(), it will warn me "7 leaked string left", but if I don't call Destory() in OnDeinit(), the chart will have more than one GUI object.
No need to call ExpertRemove in OnDeinit().
Call Destroy() and fix your code. You have some objects remaining in memory.
can you tell me how to check out which object is left
and when the EA parameters changed from parameters dialog, EA need to reninitialize, if i don't put the destroy() function in OnDeinit(), how to move the GUI object?
I test without GUI codes, it also have "leaked string left" problems.
my GUI is like this(use the standard libraries):
![](https://c.mql5.com/3/187/TIMaw20180502223141.png)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, everybody
I wrote an EA, in the OnDeinit function I called ExpertRemove function, when I use the key F7 to change the EA parametres, the EA didn't reinitialize,it warned me "7 leaked string left", I couldn't find out where the reason is, I need your help, waiting for your answer, thank you.