In my project I created object for class using new operator. After use I deleted that object and set that to NULL. But even after deletion, I could able to access and able to run other functions using that (deleted)object. Please go through example: CTemp *objTemp = new CTemp; objTemp->Fun1(); delete objTemp; objTemp = NULL; objTemp->Fun2(); // It is illegal still works, why? Why this is happening?
Satish Shankar Jagtap
Posts
-
C++ - Accessibility of object after deletion. (illegal still working), why this is happening? -
My account has been closedThanks Sir.
-
My account has been closedThanks Sir. I had posted 2 articles before which are on codeproject and are in approved status. How can I move those articles under this account?
-
My account has been closedHi, I had account with same name and email id. I had already submitted two articles which has been approved, namely 1) Import and Export MySQL databases using C++ and 2) Another way to Import and Export MySQL database using C++ When I tried to submitted my third article, problem arises. I my account I pasted some data from MSDN site, but I was not aware of that. When instructor comment me about that, I removed those part and resubmit article again. But at that point my account get closed. I am really felt sorry for that. I was not aware and not tried to do that thing consciously. I have created new account with same name. Will you please add my old submitted articles under this account. Thanks and regards, Satish Shankar Jagtap