|
-
December 1st, 2003, 09:26 AM
#3
Hi,
I agree with u. Actually it was a test code. In original one
class is having some pointer data member. In the destructor
he is freeing the memory but doesn't assign the pointer to
NULL. So somehow he has assigned the object to someone
else, so that pointer has become a dangling one. I don't
want to change his overloaded = oparetor nor do i wanna
provide a copy ctor. So i wanna call delete, catch the exception
and cooly come out without any runtime error.
Thanx and Regards
Ram
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|