求帮忙!Native' has exited with code 13 (0xd),该如何处理

求帮忙!!!Native' has exited with code 13 (0xd)
代码如下,我在弹出的对话框输入密码“12345”后,对话框直接消失,弹出错误“Native' has exited with code 13 (0xd).” 这个是怎么回事?应该点击ok按钮后接下来弹出新的输入窗口才对的啊!求帮帮忙

void CDlgIndentify::OnOK() 
{
// TODO: Add extra validation here
UpdateData(true);
static int count = 0;
if(m_strPassword=="12345")
{
m_bPass = true;
CDialog::OnOK();
return;
}
else
{
m_bPass = false;
m_strPassword = "";
UpdateData(false);
}
if(count++<2)
AfxMessageBox("密码错误,请重新输入密码!",
MB_OK|MB_ICONINFORMATION);
else
{
AfxMessageBox("              ^v^\n对不起,你已经没机会了!",
MB_OK|MB_ICONINFORMATION);
CDialog::OnOK();
}
}
------解决方案--------------------
CDlgIndentify是否是派生于CDialog
------解决方案--------------------
“在弹出的对话框输入密码“12345”后”
1. 在 哪里 输入?
2. 有没有按 OK ?
3. 有没有按 “ 回车”  ? 注意 回车在 对话框里 可能 就是 “OK” , 默认 的 
------解决方案--------------------
总共就 2条,
注释掉看看,

注意 CDialog::OnOK(); 会 执行 UpdateData(TRUE);