Hi guys,
can anybody explain, what that sudden error is supposed to mean?
My EA was working flawlessly for months, but since the latest update, I get this error.
In my EA I just declare an array
CMoneyManagement mms[];
and CMoneymanagement has one static variable.
Whats wrong with that?
Thanks in advance,
Clock
I can reduce my problem all the way down to
//+------------------------------------------------------------------+ //| Static.mq5 | //| Copyright 2013, MetaQuotes Software Corp. | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2013, MetaQuotes Software Corp." #property link "http://www.mql5.com" #property version "1.00" //+------------------------------------------------------------------+ //| Dummy Class | //+------------------------------------------------------------------+ class CMM { private: static double m_percent; public: CMM(); ~CMM(); bool Init(void); }; //+------------------------------------------------------------------+ void CMM::CMM() { Init(); } bool CMM::Init(void) { m_percent=0; return true; } void CMM::~CMM(void) { } //+------------------------------------------------------------------+ //| Define Class Array | //+------------------------------------------------------------------+ CMM mms; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int OnInit() { return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { } //+------------------------------------------------------------------+
I sure am missing something obvious here, but then again, the code has been working for the last couple months.
Thanks for any advice...
I can reduce my problem all the way down to
I sure am missing something obvious here, but then again, the code has been working for the last couple months.
Thanks for any advice...
Are you running error-free already with version 837?
Cause since that update, I get the error:
"unresolved static variable 'CMM::m_percent'"
in line 38 / 12, which is exactly the position of the variable "mms".
Ok, you didn't mention that. I am still using build 821.
EDIT : If you don't want such problem, don't use Metaquotes Demo Server, as MT5 is automatically updated during development of new release. I suggest you to wait for official relase of a new build, and if problem is still present then write to ServiceDesk.
- www.mql5.com
Thanks for your always fast and helpful comments!
Since my experiences with the Service Desk where rather unsatisfying so far, I was hoping for a quick solution right here. But if it's beta-version related (if you wanna call it that), then I'll have to go the other route.
Concerning Metaquote Server: they simply have the most satisfying price history of all the servers I tried. Also, switching back is not possible, if I'm right (except of course for a total re-install).
Clock
"Fine"!
So now that Version 842 is officially out, does the code still compile at anybodies else's PC?
For me, it's dead now, cause I cannot even go back to the last version.
Or: can anybody somehow provide me an earlier version?
Thanks in advance,
Clock
"Fine"!
So now that Version 842 is officially out, does the code still compile at anybodies else's PC?
For me, it's dead now, cause I cannot even go back to the last version.
Or: can anybody somehow provide me an earlier version?
Thanks in advance,
Clock
- 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 guys,
can anybody explain, what that sudden error is supposed to mean?
My EA was working flawlessly for months, but since the latest update, I get this error.
In my EA I just declare an array
CMoneyManagement mms[];
and CMoneymanagement has one static variable.
Whats wrong with that?
Thanks in advance,
Clock