Debug Assertion Failed! CBitmapView:OnPaint() line 67解决方案

Debug Assertion Failed! CBitmapView::OnPaint() line 67
各位大虾好!
小妹的一个VC程序在编译时通过,运行的时候老是报错!希望能给小妹一点帮助,感激不尽!
具体报错的对话框是:

Debug Assertion Failed!
   
Programme:E:\...\...\*.exe
File:afxwin1.inl
Line:418

For more information on how your programme can cause assertion failure,
see the Visual C++ documentation on asserts.


------解决方案--------------------
在OnPaint里设置断点,肯定会一直在里面运行啊。
 pDlg = new CBitmapView;
还是要看你的pDlg创建正确了没有。
------解决方案--------------------
你Debug调试一下,打开call stack窗口,看看运行到哪个函数抛出异常
------解决方案--------------------
你仔细调试一下,看看是那句话出错的。
你的错误是在这里的assert 
File:afxwin1.inl
Line:418,应该是GDI方面的错误。