[UWP][C++/CX] Page destructor not called after close app why?
isrepeat
1
Reputation point
I have following code:
public ref class MainPage sealed
{
public:
MainPage()
{
int a = 1;
}
private:
~MainPage()
{
int b = 2;
}
};
Why the destructor MainPage is not called when I close app?
However when change MainPage on other Page due to Navigate destructor MainPage is called.
It's normal for uwp not calling destructor current page when we closing app?
How i can foreced call destructor if i want?