Re: Abnormal objects - how they can become normal again?



Robert A Duff wrote:
(snip)

Another way to deal with abnormal (possibly controlled) objects is to
add a level of indirection.  I believe you can Unchecked_Deallocate an
abnormal object (not sure).  Assignment of access values does not
involve finalization.  So when you have a possibly-abnormal object, you
could simply throw it away and create a new one.

I guess you can indeed free abnormal controlled objects, but this will trigger finalization, and I think the OP wanted to avoid this (as this happens too when overwriting the abnormal object during asignation).
.