A CustomPropertyList class is created in my form constructor.
form(String ^s)
{
InitializeComponent();
CustomPropertyList ^propertyList = gcnew CustomPropertyList(s);
...
The CustomPropertyList class has a destructor
CustomPropertyList::~CustomPropertyList()
{
if (MessageBox::Show("Do you want to save your changes?","Editin",MessageBoxButtons::YesNo)==DialogResult::Yes)
...
Why is it not called when the program exits? (I know it's not as I don't see the message box and there's a breakpoint there)
I'm very grateful for any help