alcyone
Programmer
- Sep 6, 2000
- 33
Hi all,
Can anyone point me in the right direction about the following problem: I try to make a timer in my View, but when I add a call to SetTimer in my code, it compiles ok, but when running I get a error message 'Debug assertion failed! in afxwin2.inl .
What am I doing wrong?
Thanks very much for any help!
BEGIN_MESSAGE_MAP(CATCsimView, CView)
//{{AFX_MSG_MAP(CATCsimView)
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
...
CATCsimView::CATCsimView()
{
// TODO: add construction code here
SetTimer (ID_CLOCK_TIMER, 1000, NULL);
}
...
void CATCsimView::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CView::OnTimer (nIDEvent);
}
Can anyone point me in the right direction about the following problem: I try to make a timer in my View, but when I add a call to SetTimer in my code, it compiles ok, but when running I get a error message 'Debug assertion failed! in afxwin2.inl .
What am I doing wrong?
Thanks very much for any help!
BEGIN_MESSAGE_MAP(CATCsimView, CView)
//{{AFX_MSG_MAP(CATCsimView)
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
...
CATCsimView::CATCsimView()
{
// TODO: add construction code here
SetTimer (ID_CLOCK_TIMER, 1000, NULL);
}
...
void CATCsimView::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CView::OnTimer (nIDEvent);
}