Download MetaTrader 5

Explicitly Release Memory or Delete Variable

To add comments, please log in or register
vivs
48
vivs  
How to explicitly release memory, pointed by a variable, or delete the variable itself?
Ex Ovo Omnia
3221
Ex Ovo Omnia  
You have only those two keywords for explicit memory release (deleteArrayFree()).
vivs
48
vivs  
Thanks Ovo, for ur advice! Yet, this may not solve the purpose of releasing memory connected to a variable, which is neither an object nor an array; will it?
Ex Ovo Omnia
3221
Ex Ovo Omnia  
Vivs:
Thanks Ovo, for ur advice! Yet, this may not solve the purpose of releasing memory connected to a variable, which is neither an object nor an array; will it?
No, you have to rely on their natural life cycle.
vivs
48
vivs  
Ok. I was actually checking if I can delete them anywhere within the program. Thanks.
JD4
1101
JD4  
My understanding of this is MQL is based on C++, which as far as I know doesn't have automatic memory collection like Java does.
To add comments, please log in or register