My application causing an assert in viewcore.cpp
-
Hi All, MY application is causing an assert in the line 249 of viewcore.cpp.This is a OnMouseActivate() function and the assertion is at ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame)); can someone tell me what might be the possible condition.This is a randomly occuring bug and i dont have any logs regarding this Thanks in advance Regards Raghu
-
Hi All, MY application is causing an assert in the line 249 of viewcore.cpp.This is a OnMouseActivate() function and the assertion is at ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame)); can someone tell me what might be the possible condition.This is a randomly occuring bug and i dont have any logs regarding this Thanks in advance Regards Raghu
Raghunandan S wrote: can someone tell me what might be the possible condition. Either the parent frame is the desktop or the parent frame is a direct descendent of the desktop. Put a breakpoint on that line to see which of the two conditions is evaluating to
FALSE
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Hi All, MY application is causing an assert in the line 249 of viewcore.cpp.This is a OnMouseActivate() function and the assertion is at ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame)); can someone tell me what might be the possible condition.This is a randomly occuring bug and i dont have any logs regarding this Thanks in advance Regards Raghu
Hi Raghunandan, Did you subclass a view? It sounds like you are using a view where you should have a window. For example, CListCtrl is derived from CWnd but CListView is derived from CView. Jeff
-
Hi Raghunandan, Did you subclass a view? It sounds like you are using a view where you should have a window. For example, CListCtrl is derived from CWnd but CListView is derived from CView. Jeff
Hi, Mine is an SDI application where I do like this: CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CConvertDoc), RUNTIME_CLASS(CMainFrame), RUNTIME_CLASS(CConvertView)); AddDocTemplate(pDocTemplate); in my initinstance CMainFrame is derived from CFrameWnd and CConvertView is derived from CEditView. Is there any problme in this kind of creation? Regards Raghu