How to free a object?
https://www.mql5.com/en/docs/basis/variables/object_live
Local variables are deinitialized at the end of the program block, in which they were declared, and in the order opposite to their declaration. A program block is a compound operator that can be a part of selection operator switch, cycle operator (for, while, do-while), a function body or a part of the if-else operator.
ie your myobj will be freed automatically at the end of block - appropriate closing braket }
See also https://www.mql5.com/en/articles/28
- www.mql5.com
I define a object myobj like this:
...- 2010.02.25
- MetaQuotes Software Corp.
- www.mql5.com
I define a object myobj like this:
myclass myobj;
How to free it?
myobj.free?
thanks
hongbin