Errors, bugs, questions - page 1026
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
Bild 842/64 bit. When declaring a canva:
an error appears:
Unresolved static variable 'CCanvas::m_default_colors'
Everyone seems to have one.
Try initializing explicitly:
Although this seems to be a bug, according to the documentation. https://www.mql5.com/ru/docs/basis/oop/staticmembers
.....Static class members do not need to be initialized explicitly globally, they will be initialized automatically when the program is loaded. ......
No changes were made in the class code, and the error wasn't there before.
It seems to be the same for everyone.
No changes have been made to the class code, and there was no such error before.
This is how it compiles:
Hello! Help me solve a problem.
I've started to transfer my developments from mt4 to mt5. For the first time I have faced a problem with loading DLL. It compiles well but when I start the indicator. Error "cannot open dll". No more error messages. I've read all the articles and placed it all the way: Library in directory ...\Terminals\MetaTrader 5\MQL5\Libraries
this is how it compiles:
Yes, but what's all this for?
In the class constructor, this array is also initialized with new values, overwriting the ones you suggested.
Anyway, like this:
Compiles without errors. And let developers tell the sense of entering m_default_colors in the help.Yes, but what for?
In the class constructor this array is also initialized with new values, wiping out the ones you suggest.
Anyway, that's it:
Compiles without errors. And let developers can tell the meaning of m_default_colors in the help.I told you it was a bug, so go to servicedesk with it.
Although, judging by the documentation, this is a bug. https://www.mql5.com/ru/docs/basis/oop/staticmembers
.....Static class members don't need to be initialized explicitly globally, they will be initialized automatically at program startup. ......
The rest of my suggestions are devoted to running the program in the presence of this bug. The intermediate initialization performs this function, so you can work without waiting for the bug fixing.
This is a typical scheme of my actions in such situations.
MetaDriver:
Intermediate initialization performs this function, so you can work without waiting for the bug to be fixed.
This is a typical scheme of my actions in such situations.
And my actions too. Thank you.
And Service Desk reads and re-reads this thread, so they will fix it.
Al_key:
Error "cannot open dll". No further messages.
The terminal does not find your DLL.
The path to copying can be seen through MetaEditor, taking the properties of the MQL5 folder in the navigator, the path is written in the "Location" field. And then copy your DLL in the folder [path]\MQL5\Libraries\.
Dear administration, something is wrong with the metaQuotes-DEMO server
Says in the log : 2013.08.01 11:58:35 Network '1449777': connection to MetaQuotes-Demo lost
The terminal does not find your DLL.
You can see the copying path in MetaEditor, taking the properties of the MQL5 folder in the navigator, the path is written in the location column. And then copy your DLL in the folder [path]\MQL5\Libraries\
Yeah, but like I wrote, I already copied libmysql [path]\MQL5\Libraries\.
I go to the meta editor and open the properties of MQL5 folder, but there is some path that is not associated with my terminal folder. Will it always be like this from now on, or can I adjust it? By the way, I did so and copied everything. Still the same error.
Ok, new edit to the post. Everything seems to be working, a bunch of other errors, I'll look into it now. And still how to make a standard folder for indices and EAs and other data. Will the /portable switch help?