PostMessage(WM_QUIT);
-
Hi, I have an MFC (VC6) app that uses a splitter window. There are buttons on the left and info is displayed on the right. I have added a "Quit" button to the left splitter with the following code"
void CControlPanel::OnBtnQuit()
{
PostMessage(WM_QUIT);
}And some clean up operation is done in CResidentialEstimatorApp::ExitInstance()
int CResidentialEstimatorApp::ExitInstance()
{CString file; file = GetPath("tempEst","html"); CleanUPm(file); return CWinApp::ExitInstance();
}
The program crashes sometimes when the 'Quit' button is clicked. I can't figure out why this is happening. If the program is closed using the 'X' button or File-Exit from the menu, there is no problem. Any help is highly appreciated! Thanks, Tara
_
Fortitudine Vincimus!_
-
Hi, I have an MFC (VC6) app that uses a splitter window. There are buttons on the left and info is displayed on the right. I have added a "Quit" button to the left splitter with the following code"
void CControlPanel::OnBtnQuit()
{
PostMessage(WM_QUIT);
}And some clean up operation is done in CResidentialEstimatorApp::ExitInstance()
int CResidentialEstimatorApp::ExitInstance()
{CString file; file = GetPath("tempEst","html"); CleanUPm(file); return CWinApp::ExitInstance();
}
The program crashes sometimes when the 'Quit' button is clicked. I can't figure out why this is happening. If the program is closed using the 'X' button or File-Exit from the menu, there is no problem. Any help is highly appreciated! Thanks, Tara
_
Fortitudine Vincimus!_
Have you tried this? AfxGetMainWnd()->PostMessage( WM_QUIT );
- NS - [ODBaseBtn]
-
Hi, I have an MFC (VC6) app that uses a splitter window. There are buttons on the left and info is displayed on the right. I have added a "Quit" button to the left splitter with the following code"
void CControlPanel::OnBtnQuit()
{
PostMessage(WM_QUIT);
}And some clean up operation is done in CResidentialEstimatorApp::ExitInstance()
int CResidentialEstimatorApp::ExitInstance()
{CString file; file = GetPath("tempEst","html"); CleanUPm(file); return CWinApp::ExitInstance();
}
The program crashes sometimes when the 'Quit' button is clicked. I can't figure out why this is happening. If the program is closed using the 'X' button or File-Exit from the menu, there is no problem. Any help is highly appreciated! Thanks, Tara
_
Fortitudine Vincimus!_
-
Have you tried this? AfxGetMainWnd()->PostMessage( WM_QUIT );
- NS - [ODBaseBtn]
Thanks. I have tried as you suggested. But the program still crashes. For some reason, it is happening on some XP systems. It doesn't happen on my computer. Also if the 'X' button is clicked or File-Exit is clicked there is no problem. I just don't understand why this is happening.
_
Fortitudine Vincimus!_
-
Thanks. I have tried as you suggested. But the program still crashes. For some reason, it is happening on some XP systems. It doesn't happen on my computer. Also if the 'X' button is clicked or File-Exit is clicked there is no problem. I just don't understand why this is happening.
_
Fortitudine Vincimus!_
Debugging the application may help you? If we got a "Abort Retry Ignore" message box when it crashes, then we can locate the code part.
- NS - [ODBaseBtn]
-
Debugging the application may help you? If we got a "Abort Retry Ignore" message box when it crashes, then we can locate the code part.
- NS - [ODBaseBtn]
It turned out that the computers on which this was happening, after re-installing MS Office, the problem disappeared. I wonder why. Would you be having any idea? The program only uses the IE browser to display reports; nothing else that would clash with MS Office.:confused:
_
Fortitudine Vincimus!_
-
It turned out that the computers on which this was happening, after re-installing MS Office, the problem disappeared. I wonder why. Would you be having any idea? The program only uses the IE browser to display reports; nothing else that would clash with MS Office.:confused:
_
Fortitudine Vincimus!_
:confused: :(
- NS - [ODBaseBtn]