Click here to Skip to main content
15,906,569 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionApplication crashes after the call onStart (msg handeler )is done. Pin
ptr_Electron6-Aug-08 18:01
ptr_Electron6-Aug-08 18:01 
AnswerRe: Application crashes after the call onStart (msg handeler )is done. Pin
Stephen Hewitt6-Aug-08 18:26
Stephen Hewitt6-Aug-08 18:26 
GeneralRe: Application crashes after the call onStart (msg handeler )is done. Pin
ptr_Electron6-Aug-08 18:37
ptr_Electron6-Aug-08 18:37 
GeneralRe: Application crashes after the call onStart (msg handeler )is done. Pin
Stephen Hewitt6-Aug-08 18:41
Stephen Hewitt6-Aug-08 18:41 
GeneralRe: Application crashes after the call onStart (msg handeler )is done. Pin
ptr_Electron6-Aug-08 19:36
ptr_Electron6-Aug-08 19:36 
GeneralRe: Application crashes after the call onStart (msg handeler )is done. Pin
Stephen Hewitt6-Aug-08 19:43
Stephen Hewitt6-Aug-08 19:43 
GeneralRe: Application crashes after the call onStart (msg handeler )is done. Pin
David Crow7-Aug-08 3:33
David Crow7-Aug-08 3:33 
AnswerRe: Application crashes after the call onStart (msg handeler )is done. Pin
SandipG 6-Aug-08 20:52
SandipG 6-Aug-08 20:52 
ptr_Electron wrote:
void MainFrame::OnStart()
{
Dlg->DoModal(); // dialog is displayed and after closing the dialog app. crashes

}

I think you are sending some user defined message and You are not handling WPARAM and LPARAM.
You need to define the parameters even if you are not using them. Just add these parameters and your crash in release mode will be resolved.

void MainFrame::OnStart(WPARAM wParam, LPARAM lParam)
{
 Dlg->DoModal();  // dialog is displayed and after closing the dialog app. crashes

}

Also dont forget to edit the function declaration in CMainFrame.

Regards,
Sandip.

QuestionHow to include animations in MFC (vc++6.0) Pin
Mohsin Abbas6-Aug-08 17:36
Mohsin Abbas6-Aug-08 17:36 
AnswerRe: How to include animations in MFC (vc++6.0) Pin
ptr_Electron6-Aug-08 18:34
ptr_Electron6-Aug-08 18:34 
AnswerRe: How to include animations in MFC (vc++6.0) Pin
pallaka6-Aug-08 18:35
pallaka6-Aug-08 18:35 
QuestionLNK2001 error question Pin
monsieur_jj6-Aug-08 17:31
monsieur_jj6-Aug-08 17:31 
AnswerRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 19:07
Nibu babu thomas6-Aug-08 19:07 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 19:28
monsieur_jj6-Aug-08 19:28 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 19:42
Nibu babu thomas6-Aug-08 19:42 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 19:48
monsieur_jj6-Aug-08 19:48 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 19:53
Nibu babu thomas6-Aug-08 19:53 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 20:00
monsieur_jj6-Aug-08 20:00 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 20:06
Nibu babu thomas6-Aug-08 20:06 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 20:27
monsieur_jj6-Aug-08 20:27 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 20:48
Nibu babu thomas6-Aug-08 20:48 
QuestionAccessing microsoft index service with ADO Pin
tustin6-Aug-08 14:09
tustin6-Aug-08 14:09 
QuestionLPITEMIDLIST Pin
Bram van Kampen6-Aug-08 13:17
Bram van Kampen6-Aug-08 13:17 
AnswerRe: LPITEMIDLIST Pin
Stephen Hewitt6-Aug-08 14:04
Stephen Hewitt6-Aug-08 14:04 
GeneralRe: LPITEMIDLIST Pin
Bram van Kampen6-Aug-08 15:25
Bram van Kampen6-Aug-08 15:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.