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
Oh, it ever work good. today it make error when compile again with new version MT4
What you think. what is the problem. I think this solution should come from MQL5.com administrator
I think error from new version of MT4.
any comment from moderator for this solution. or may be we have to wait for next version
I had the same Problem.
I had an instance of a MyDialog (derived from CAppDialog) as global variable in an EA, like this:
MyDialog myDialog;
In the OnDeinit function I called myDialog.Destroy(reason);
Before the last update of MT5 (now I have build 1210) everything worked fine.
I found out, that the Destroy-Method of CAppDialog has changed:
Pre update:
After update to build 1210:
So the first call of the Method does still what I expect, but the next call will do nothing because m_deinit_reason won't be a "WRONG_VALUE".
I use the following workaround:
So every time I change the time frame, the dialog will be fully killed an instanciated newly.
I would appreciate any suggestions for a better way :)
I had the same Problem.
I had an instance of a MyDialog (derived from CAppDialog) as global variable in an EA, like this:
MyDialog myDialog;
In the OnDeinit function I called myDialog.Destroy(reason);
Before the last update of MT5 (now I have build 1210) everything worked fine.
I found out, that the Destroy-Method of CAppDialog has changed:
Pre update:
After update to build 1210:
So the first call of the Method does still what I expect, but the next call will do nothing because m_deinit_reason won't be a "WRONG_VALUE".
I use the following workaround:
So every time I change the time frame, the dialog will be fully killed an instanciated newly.
I would appreciate any suggestions for a better way :)
Very useful information! Thanks.