Hey,
I use openfiledialog to load a file as so:
OpenFileDialog^ ofd=gcnew OpenFileDialog;
ofd->Filter="Monitor files (*.hmc)|*.hmc";
ofd->FileName="";if(ofd->ShowDialog()==System::Windows::Forms::DialogResult::OK){
loadFile(ofd->FileName);
}
when i initially run the program memory in task manager is about 10,000K. when this code runs it jumps to 17,000K and doesnt go back down. I tried using delete and im 100% sure its the openfiledialog's call to showfiledialog... how do i deallocate this memory?