Board index » cppbuilder » Forcing Modal to close
Daniel F
![]() CBuilder Developer |
Forcing Modal to close2006-04-12 10:17:01 PM cppbuilder46 Hi, i want to close all forms that are parent of my main form for(int i=0;i<this->MDIChildCount;i++) { this->MDIChildren[i]->Close(); } i close all the forms when a certain timer reach a value and "locks" my aplication showing only one modal asking the user to insert pass to "unlock" aplication.. works ok except when the aplication is locked and a modal is showing at the moment, because when user unlocks the aplication it starts running the code next to the modal that doesnt exists anymore (...) void __fastcall TvendasFORM::BguardarClick(TObject *Sender) { (...) TinfoanexaFORM *infa = new TinfoanexaFORM(this); Quote>>if(infa->ShowModal() == mrOk) doing a break poing on '>>>' i can see it trys to call the function inside the IF, Firing access memory erros thx in advanced |