Reported to MQ.
democog:
Hello,
I have come across a bug in MetaEditor that has to do with when declaring enums.. This bug causes the program to hang for some seconds or even causes some infinite loop if we attempt to compile..
In order to reproduce the bug we have to create an enum in global scope as below (with the opening brace) :
Next we save and close the file (any file, mq5, mqh) and open again.. Now we cannot change tabs without the system freezing.. Also if we press compile the program goes into infinite loop..
greets
My program Experts and Indicators
enum YN { No, // No Yes // Yes };
On MQL5/MQL4 neither MetaEditor nor MetaTrader freezes, no errors, no bug, and my program works fine.
Fixed

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
Hello,
I have come across a bug in MetaEditor that has to do with when declaring enums.. This bug causes the program to hang for some seconds or even causes some infinite loop if we attempt to compile..
In order to reproduce the bug we have to create an enum in global scope as below (with the opening brace) :
enum ENUM_SOME { SOME_VAL
Next we save and close the file (any file, mq5, mqh) and open again.. Now we cannot change tabs without the system freezing.. Also if we press compile the program goes into infinite loop..
greets