Demonpiggies
Programmer
Originally I wanted to call the destructor from the constructor but what I really wanted to do is delete the object(vc++ 6.0 dialog object)if it does not meet a certain condition within the constructor itself. We're pretty sure an object cannot be delete from within itself but can the destructor be called from within its constructor (nulling the members). The idea is to free the memory as fast as possible. If it is possible, then would there be a stack pointer issue where the top of the stack is empty and the pointer points to this empty space? I'm not going down this root (mainly because the scope of the object is so little) but it's caused some discussion and I'm really curious about the true answer.