My only guess is that the memory was only marked as being deleted but that space had not yet been used. For some freak of nature (or compiler) it worked. I would say never trust it but because you do it so fast after the delete, the memory is still good. Remember I can always say
Because I dont set pObject to null, it runs, compiles and crashes. In your case, the address was valid. Try AfxAssertValidAddres on the pointer (I think that is the name of it.. i know validaddress is part of it)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.