Explicitly Release Memory or Delete Variable

Back to topics list To post a new topic, please log in or register
avatar
14
Vivs 2015.06.11 11:00
 
How to explicitly release memory, pointed by a variable, or delete the variable itself?
avatar
1109
Ovo 2015.06.11 11:38 #
 
You have only those two keywords for explicit memory release (deleteArrayFree()).
avatar
14
Vivs 2015.06.11 12: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?
avatar
1109
Ovo 2015.06.11 15: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.
avatar
14
Vivs 2015.06.11 16:28 #
 
Ok. I was actually checking if I can delete them anywhere within the program. Thanks.
avatar
313
JD4 2015.06.24 06: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.
Back to topics list  

To add comments, please log in or register