Hello everyone,
I listed for scenarios. I think case 1, 2 and 4 are object's destructor is called during stack unwinding caused by exception. Scenario 3 is not stack unwinding and it is normal function return (not exception) triggers the destructor of the object.
Scenario 1:
Code:
try{
local object defined;
exception throws;
} catch ()
{
catched;
}
Scenario 2:
Code:
try{
local object defined;
exception throws;
} catch ()
{
not catched;
}
Scenario 3:
Code:
local object defined;
try{
exception throws;
} catch ()
{
catched;
}
Scenario 4:
Code:
local object defined;
try{
exception throws;
} catch ()
{
not catched;
}
thanks in advance,
George