I'm doing a project, from someone else take over, take charge of a redundant sliding block dialog, I wanted to hide him, but to run after the hidden or can see it, so I just angry to delete it, this is out of the trouble, run time, show the debug an assertion failed error, I ordered a retry later, interrupt the dlgdata. A line of CPP, specific code is as follows:
HWND CDataExchange: : PrepareCtrl (int nIDC) { ASSERT (nIDC!=0); ASSERT (nIDC!=1);//not allowed The HWND hWndCtrl; COleControlSite * pSite=NULL; M_pDlgWnd - & gt; GetDlgItem (nIDC, & amp; HWndCtrl); If (hWndCtrl==NULL) { //Could be a windowless OCX PSite=m_pDlgWnd - & gt; GetOleControlSite (nIDC); If (pSite==NULL) { TRACE (traceAppMsg, 0, "Error: no data exchange control with ID 0 x % 4 x. \ n", nIDC); ASSERT (FALSE); AfxThrowNotSupportedException (); } } M_idLastControl=nIDC; M_bEditLastControl=FALSE;//not an edit item by default
Return hWndCtrl; }
Interrupt to ASSERT (FALSE); This line, I also met the debug this error before, but because of wild pointer problem, really don't know how to modify this time, for the great god help!
CodePudding user response:
Hope the great god glad, I really worry, the project main content is done, don't want to delay progress because the interface problem
CodePudding user response:
Problem has been added to 100 points, hope to have a great god can solve my problem!
CodePudding user response:
The call stack, it should be DoDataExchange DDX_Control control went wrong, associated in block