Original URL: http://blog.csdn.net/onlyou930/article/details/6384075
An error occurred while running a C + + program in VS2010:
At the sight of this, I have a big head. The point is f:/dd/vctools/vc7libs/ship/atlmfc/src/mfc/dlgdata.cpp this path does not exist on my computer at all. But the estimate is under the installation directory.
Lenovo has recently updated to VS2010_SP1, but the release package:
en_visual_c++_2010_sp1_redistributable_package_x86_651767
Not installed, try again after installation, or error.
In order to find dlgdata.cpp, I used the following self-written search tool,
After searching, open the file with the tool and click on the open Notepad: View the status bar, then navigate to line 40:
Finally know about, Google search keywords: cdataexchange::P Reparectrl, the first search results,
Http://blog.csdn.net/zipper9527/archive/2009/06/19/4282229.aspx
"I think the reason is that you have a variable binding for a control, and then you think the control is useless, and then you delete the control directly on the dialog box, and the associated code here doesn't delete it."
The point is I don't know what my nidc is, and then I find a lot of NIDC, because I've bound many variables. That being the case, drag the dlgdata.cpp to the current project's VS2010 environment, open dlgdata.cpp, set a breakpoint at line 40th, point the Green Run button, and quickly go to the breakpoint.
Haha, NIDC found, is 1008.
Then find the corresponding id_edit1.
And then follow
Http://blog.csdn.net/zipper9527/archive/2009/06/19/4282229.aspx
Comment out related lines
DDX_Control (PDX, idc_edit1, m_xxxx);
and comment out the idc_edit1, M_xxxx also commented out,
Run again, no more interruptions. Yeah!!!
Analysis Reason: Originally set up a TextBox control Eidt1, and then bind it to a variable, and then feel bad, and then replace the control into a ComboBox, then, the appearance of later this phenomenon.
Conclusion: Before you delete a control, you can first unbind the control's variable and then delete the control.
"Go" dlgdata.cpp line 40 assertion failed