2, when the user closes a process crashes, what are the possible reasons?
3, OS should also can only reclaim memory, and can't call the heap object's destructor?
4, the following tests, why the object's destructor is able to be performed?
Class A
{
Public:
~ (A)
{
STD: : cout & lt; & lt; "Destroy!" & lt; & lt; STD: : endl;
}
}
Int main ()
{
A * A=new A ();
return 0;
}
CodePudding user response:
Why you need to adjust the destructor, direct the whole address space back not to goCodePudding user response: