Download MetaTrader 5
To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
vivs
43
vivs 2015.06.11 09:00 
How to explicitly release memory, pointed by a variable, or delete the variable itself?
Ovo Cz
2951
Ovo Cz 2015.06.11 09:38  
You have only those two keywords for explicit memory release (deleteArrayFree()).
vivs
43
vivs 2015.06.11 10:34  
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?
Ovo Cz
2951
Ovo Cz 2015.06.11 13:39  
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
43
vivs 2015.06.11 14:28  
Ok. I was actually checking if I can delete them anywhere within the program. Thanks.
JD4
1101
JD4 2015.06.24 04:59  
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