I read that it is automatically allocated on the managed and is a
convenience
of C++. Also a destructor and !N() (finalize) methods should be defined
for
any cleanup. The destructor can call the finalizer e.g. this->!()N so they
can both use the came code.
The idea is that the destructor will be called for cases of classes
instantiated as local variables (my original posted question) and the
finalizer is called by the GC for normal object instantiations via gcnew.
both cases are allocated on the managed heap.
you should have a look at the thread 'Destructor: not guaranteed to be
called?' in this newsgroup, started on 31/01/2006.
It holds an extensive discussion about finalizers, destructors and the
difference between the 2.
--
Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"