Errors, bugs, questions - page 1220 1...121312141215121612171218121912201221122212231224122512261227...3193 New comment A100 2014.10.12 11:48 #12191 Error in description or implementation '\n'void OnStart() { ushort ch = '\n'; Print( int(ch) ); } Result: 10 and the description says 13https://www.mql5.com/ru/docs/basis/types/integer/symbolconstants A100 2014.10.13 14:12 #12192 You cannot resize(ArrayResize) an array of const pointers , while const refers to a pointer, not an arrayclass A {}; void f() { const A * array1[]; A * array2[]; ArrayResize( array1, 1 ); //ошибка компиляции ArrayResize( array2, 1 ); } and not const you can. What's the difference? A100 2014.10.13 17:29 #12193 Memory leakage,class XYZ { }; class A { public: }; void OnStart() { A *a = new A(); }Result:but... XYZ object - was not created! Since sometimes className is specified correctly, the error is probably not just in the name A100 2014.10.14 02:04 #12194 Execution error: crashclass A { public: void operator=( A* a ) { f( a ); } virtual void f( A* a ) {} }; class B : public A { public: virtual void f( A* a ) {} A *g() { return ( new B() ); } }; void OnStart() { B b; B c = b.g(); }build 989 Alexey Navoykov 2014.10.14 02:11 #12195 Why doesn't this option work in MQL?static const int size=10; int array[size]; Alexander 2014.10.14 07:52 #12196 A100: Execution error: crashbuild 969 Thanks for the messages! Check Ramil Minniakhmetov 2014.10.14 10:58 #12197 Good afternoon, am I the only one with this picture on the website or does everyone have it?) Ramil Minniakhmetov 2014.10.14 11:18 #12198 Mechanic: Good afternoon, am I the only one with this picture on the site or does everyone have it?) Sorry, it looks like I'm the only one - I need to clean my computer today A100 2014.10.14 11:27 #12199 meat: Why doesn't this option work in MQL?Otherwise const could not be made computableint f() { return ( 1 ); } static const int size = f(); void OnStart() { int array[]; ArrayResize( array, size ); } Fry_Антон 2014.10.14 14:56 #12200 ErrorChallenge: Bars(Symbol(),PERIOD_D1); Leads to a message in the logbook:HistoryBase 'RTS-12.14' 1 invalid bars removedI'm fed up with this error. Amongst other things, it's also loading up the communication channel.The same error appears for other, unidentified reasons.But, interestingly, it doesn't appear on many other instruments. It appears the most on the RTS futures.I wrote to servicedesk a few months ago - no reply(Request started: 2014.07.28 13:41, #1046215).I am attaching the code of the induke that causes this error on every tick of the current (and past) RTS futures (demo account with broker "O..."):#property version "1.00" #property indicator_separate_window int OnInit(){return(INIT_SUCCEEDED);} int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { Bars(Symbol(),PERIOD_D1); return(rates_total); } Is this a bug in the terminal? Or at the broker? Or me?What should I do? How can I know number of bars on D1 timeframe otherwise? 1...121312141215121612171218121912201221122212231224122512261227...3193 New comment
Error in description or implementation '\n'
Result: 10 and the description says 13
https://www.mql5.com/ru/docs/basis/types/integer/symbolconstants
You cannot resize(ArrayResize) an array of const pointers , while const refers to a pointer, not an array
and not const you can. What's the difference?Memory leakage,
Result:
but... XYZ object - was not created! Since sometimes className is specified correctly, the error is probably not just in the name
Execution error: crash
build 989
Why doesn't this option work in MQL?
Execution error: crash
build 969
Good afternoon, am I the only one with this picture on the site or does everyone have it?)
Why doesn't this option work in MQL?
Otherwise const could not be made computable
Error
Challenge:
Leads to a message in the logbook:
HistoryBase 'RTS-12.14' 1 invalid bars removed
I'm fed up with this error. Amongst other things, it's also loading up the communication channel.
The same error appears for other, unidentified reasons.
But, interestingly, it doesn't appear on many other instruments. It appears the most on the RTS futures.
I wrote to servicedesk a few months ago - no reply(Request started: 2014.07.28 13:41, #1046215).
I am attaching the code of the induke that causes this error on every tick of the current (and past) RTS futures (demo account with broker "O..."):
Is this a bug in the terminal? Or at the broker? Or me?
What should I do? How can I know number of bars on D1 timeframe otherwise?