Crash after making text box blank.
-
http://69.50.187.114/~area51/crash.jpg I been working on this bug for few days and cant find way. it is time reminder program. I do know some validation things and they are not working :( The int numbers have to be load from the .ini
-
http://69.50.187.114/~area51/crash.jpg I been working on this bug for few days and cant find way. it is time reminder program. I do know some validation things and they are not working :( The int numbers have to be load from the .ini
-
That screenshot doesn't really help. Paste the code for that field and anything to do with that field.
CMyDigClockDlg::CMyDigClockDlg(CWnd* pParent /*=NULL*/) : CDialog(CMyDigClockDlg::IDD, pParent) { //{{AFX_DATA_INIT(CMyDigClockDlg) m_name = _T(""); m_hour9 = _T(""); m_hour8 = _T(""); m_hour7 = _T(""); m_name2 = _T(""); m_name3 = _T(""); m_name4 = _T(""); m_name6 = _T(""); m_name5 = _T(""); m_hour = 0; m_minutes = 0; m_hour2 = 0; m_hour3 = 0; m_hour4 = 0; m_hour5 = 0; m_hour6 = 0; m_minutes2 = 0; m_minutes3 = 0; m_minutes4 = 0; m_minutes5 = 0; m_minutes6 = 0; m_ampm = _T(""); m_ampm2 = _T(""); m_ampm3 = _T(""); m_ampm4 = _T(""); m_ampm6 = _T(""); m_ampm5 = _T(""); m_notepad = _T(""); //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CMyDigClockDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMyDigClockDlg) DDX_Control(pDX, IDC_CLOCK, m_clock); DDX_Text(pDX, IDC_NAME, m_name); DDX_Text(pDX, IDC_NAME2, m_name2); DDX_Text(pDX, IDC_NAME3, m_name3); DDX_Text(pDX, IDC_NAME4, m_name4); DDX_Text(pDX, IDC_NAME6, m_name6); DDX_Text(pDX, IDC_NAME5, m_name5); DDX_Text(pDX, IDC_HOUR, m_hour); DDX_Text(pDX, IDC_HOUR2, m_hour2); DDX_Text(pDX, IDC_HOUR3, m_hour3); DDX_Text(pDX, IDC_HOUR4, m_hour4); DDX_Text(pDX, IDC_HOUR5, m_hour5); DDX_Text(pDX, IDC_HOUR6, m_hour6); DDX_Text(pDX, IDC_MINUTES, m_minutes); DDX_Text(pDX, IDC_MINUTES2, m_minutes2); DDX_Text(pDX, IDC_MINUTES3, m_minutes3); DDX_Text(pDX, IDC_MINUTES4, m_minutes4); DDX_Text(pDX, IDC_MINUTES5, m_minutes5); DDX_Text(pDX, IDC_MINUTES6, m_minutes6); DDX_CBString(pDX, IDC_AMPM, m_ampm); DDV_MaxChars(pDX, m_ampm, 2); DDX_CBString(pDX, IDC_AMPM2, m_ampm2); DDV_MaxChars(pDX, m_ampm2, 2); DDX_CBString(pDX, IDC_AMPM3, m_ampm3); DDV_MaxChars(pDX, m_ampm3, 2); DDX_CBString(pDX, IDC_AMPM4, m_ampm4); DDV_MaxChars(pDX, m_ampm4, 2); DDX_CBString(pDX, IDC_AMPM6, m_ampm6); DDV_MaxChars(pDX, m_ampm6, 2); DDX_CBString(pDX, IDC_AMPM5, m_ampm5); DDV_MaxChars(pDX, m_ampm5, 2); DDX_Text(pDX, IDC_NOTEPAD, m_notepad); //}}AFX_DATA_MAP } I have those variables in OnTimer. This is in my OnTimer function. if ((CurTime.wHour == m_hour) && (CurTime.wMinute == m_minutes) && (CurTime.wSecond == 00) && (setampm == m_ampm)) { CString msg; msg.Format("%s %d:%d %s",m_name, m_hour, m_minutes, m_ampm); addiconballoon(1,m_name,msg,m_name,10); startanimateicon(); } if ((CurTime.wHour
-
CMyDigClockDlg::CMyDigClockDlg(CWnd* pParent /*=NULL*/) : CDialog(CMyDigClockDlg::IDD, pParent) { //{{AFX_DATA_INIT(CMyDigClockDlg) m_name = _T(""); m_hour9 = _T(""); m_hour8 = _T(""); m_hour7 = _T(""); m_name2 = _T(""); m_name3 = _T(""); m_name4 = _T(""); m_name6 = _T(""); m_name5 = _T(""); m_hour = 0; m_minutes = 0; m_hour2 = 0; m_hour3 = 0; m_hour4 = 0; m_hour5 = 0; m_hour6 = 0; m_minutes2 = 0; m_minutes3 = 0; m_minutes4 = 0; m_minutes5 = 0; m_minutes6 = 0; m_ampm = _T(""); m_ampm2 = _T(""); m_ampm3 = _T(""); m_ampm4 = _T(""); m_ampm6 = _T(""); m_ampm5 = _T(""); m_notepad = _T(""); //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CMyDigClockDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMyDigClockDlg) DDX_Control(pDX, IDC_CLOCK, m_clock); DDX_Text(pDX, IDC_NAME, m_name); DDX_Text(pDX, IDC_NAME2, m_name2); DDX_Text(pDX, IDC_NAME3, m_name3); DDX_Text(pDX, IDC_NAME4, m_name4); DDX_Text(pDX, IDC_NAME6, m_name6); DDX_Text(pDX, IDC_NAME5, m_name5); DDX_Text(pDX, IDC_HOUR, m_hour); DDX_Text(pDX, IDC_HOUR2, m_hour2); DDX_Text(pDX, IDC_HOUR3, m_hour3); DDX_Text(pDX, IDC_HOUR4, m_hour4); DDX_Text(pDX, IDC_HOUR5, m_hour5); DDX_Text(pDX, IDC_HOUR6, m_hour6); DDX_Text(pDX, IDC_MINUTES, m_minutes); DDX_Text(pDX, IDC_MINUTES2, m_minutes2); DDX_Text(pDX, IDC_MINUTES3, m_minutes3); DDX_Text(pDX, IDC_MINUTES4, m_minutes4); DDX_Text(pDX, IDC_MINUTES5, m_minutes5); DDX_Text(pDX, IDC_MINUTES6, m_minutes6); DDX_CBString(pDX, IDC_AMPM, m_ampm); DDV_MaxChars(pDX, m_ampm, 2); DDX_CBString(pDX, IDC_AMPM2, m_ampm2); DDV_MaxChars(pDX, m_ampm2, 2); DDX_CBString(pDX, IDC_AMPM3, m_ampm3); DDV_MaxChars(pDX, m_ampm3, 2); DDX_CBString(pDX, IDC_AMPM4, m_ampm4); DDV_MaxChars(pDX, m_ampm4, 2); DDX_CBString(pDX, IDC_AMPM6, m_ampm6); DDV_MaxChars(pDX, m_ampm6, 2); DDX_CBString(pDX, IDC_AMPM5, m_ampm5); DDV_MaxChars(pDX, m_ampm5, 2); DDX_Text(pDX, IDC_NOTEPAD, m_notepad); //}}AFX_DATA_MAP } I have those variables in OnTimer. This is in my OnTimer function. if ((CurTime.wHour == m_hour) && (CurTime.wMinute == m_minutes) && (CurTime.wSecond == 00) && (setampm == m_ampm)) { CString msg; msg.Format("%s %d:%d %s",m_name, m_hour, m_minutes, m_ampm); addiconballoon(1,m_name,msg,m_name,10); startanimateicon(); } if ((CurTime.wHour
Send me your project. I can't see anything wrong with that. djneried@homemail.com.au But I have a vauge idea of what is happening Ashman I'm normally not a praying man, but if you're up there, please save me Superman.
-
http://69.50.187.114/~area51/crash.jpg I been working on this bug for few days and cant find way. it is time reminder program. I do know some validation things and they are not working :( The int numbers have to be load from the .ini
So have you looked at line 3102 of wincore.cpp? That should tell you exactly what is wrong.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow