[]
CDocument::RemoveView()...CDocument::UpdateFrameCounts()我检查过了,在前面调用的派生CView析构函数中,CView已经设置为NULL。m_viewList.IsEmpty()) // get frame attached to the view
CView* pView = (<
当崩溃发生时,应用程序在CView::OnFilePrint()代码中。我们增加了一些日志记录,我们知道我们通过了DoPreparePrinting和OnBeginPrinting。我们相信CDC::StartDoc是下一个叫做CView::OnPrepareDC的东西。当我们失败的时候,我们不会到达OnPrepareDC。我们似乎没有找到CView::OnFilePrint的源代码,所以我们不确定它是什么样子。从网上的研究来看,我们认为在OnFilePrint中发生的事情是这样的。// what we think is
我在一个CDocument应用程序中打开了一个MFC和相关的CView。我想分离并关闭视图(和关联的框架),同时保持文档打开。m_viewList.IsEmpty()) // get frame attached to the view
CView* pView = (CView*)m_viewList.GetHead