Click here to Skip to main content
16,022,054 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
void CCReadLogDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
	  CDialogEx::OnSysCommand(nID, lParam);
	}

}


What I have tried:

I have a crash when I exit from fuction, but I don't understand why
Posted
Updated 4-Oct-24 21:19pm
v2
Comments
jeron1 4-Oct-24 12:33pm    
If you were to step through it in debug mode, do you see the offending line that causes the crash?
Rick York 4-Oct-24 15:53pm    
Put some TRACE statements in the code and figure it out. There is nothing obviously wrong with that code as it is so you have to take some steps to diagnose the problem.

1 solution

A common issue is, that you arent in the main thread or called the function from a dll. Use the debugger to find the details out.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900