technically it doesnt really "destroy" the object

put msgbox in class_terminate and watch when
it pops

with copy memory you arent creating a new class
or destroying one, you are getting a valid reference
to the com object from its pointer value.

so its not cleanup in the set = nothing sense
because the ref count was never incremented

when you copymemory obj, 0 , 4
you are just removing the reference
to the valid class in the tmp variable

if the objptr was not 0 , then when the
variable goes out of scope, vb would automatically
call the equilivent set obj= nothing to decrement its
ref count

if the object we to nolonger exist then you would get
the invalid memory error.