That happens because the destructor is being called when Garbage collector is cleaning the memory used by the class instance.
How can i call the DTOR or at least a Release method after end of scope?
Optimally automatic without any explicit calls.
That happens because the destructor is being called when Garbage collector is cleaning the memory used by the class instance.
How can i call the DTOR or at least a Release method after end of scope?
Optimally automatic without any explicit calls.