Errors, bugs, questions - page 2468

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
The pseudo code they gave in this thread some time ago, look for it. As far as I remember, the capacity there is increased only when the array size exceeds this capacity. Although something could have changed of course.
And the function to get the value of saracity is really very necessary.
Thanks for the information, so far I found how fxsaber was looking for the same thing )).
Forum on trading, automated trading systems and strategy testing
Bugs, bugs, questions
fxsaber, 2018.04.13 10:04
Help find the developer post where the ArrayResize source code was posted. Googling "site:mql5.com/en/forum ArrayResize+reserve" doesn't help.
I remember that there was a source code. In it you can immediately see the logic of implementation of the reserve-parameter.
Besides possibility to use reserve_size with value -1 in ArrayResize to clear previously allocated memory, I haven't found anything.
Thanks for the information, so far I found how fxsaber was looking for the same thing ))
I haven't found it either.)
I think @Slava wrote about it.
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
Ilyas, 2016.08.24 11:08
The array ("inside") stores the allocated - under how many elements the array is allocated.The logic for working with allocated (conditional code):
Thank you for your help.
Unfortunately, this code does not provide any answers to the questions at hand.
Template classes break at compile time, but structures are OK.
You can get the reserve with dirty hooks and check the resize behavior with handles
Presumably, in the array object's memory, the variable under reserved size lies next to the variable under size.
But at the moment there are ten more urgent tasks than debugging or digging in memory of MT to study the effect of ArrayResize on the reserved size field of the array object.
Not all data types can perform a type cast "in itself", it turns out...
Template classes break at compile time, but structures are OK.
Thanks for the message.
It's a rudiment, we'll fix it.
Thanks, didn't think about WinApi access to process memory.
P.s. Personal message is closed, so I'm writing here:
"In reverse engineering, the term hook has a specific meaning - code to intercept the invocation of a function or event."