Debug Assertion Failed! afxwin1.inl line:22
小弟不才,向各位大哥请教。
我的工程是Single Dialog,先前没有任何问题,后来就出了问题。问题描述如下:
Debug和Release编译和连接时都没有问题,但在执行Debug时,出现断言错误:
Debug Assertion Failed!
afxwin1.inl
line:22
点击忽略时,可正常执行,且执行一两个小时都没问题。
点击重试时,出现afxcrit.cpp line 74错误。然后就是“应用程序发生异常,0x80000003位置为: 0x5f47d3b3“(每次都是这两个值)
调试时点重试,查看afxwin1.inl时,定位在
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle()
{ ASSERT(afxCurrentInstanceHandle != NULL);
return afxCurrentInstanceHandle; }
line 22 : _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
在Stack中,AfxGetResourceHandle() line22+33bytes
afxFIndResourceHandle(...)
CRectTracker:Construct() (自写了一个类,其父类为CrectTracker)
...........
请各位帮忙解决一下,是什么类型的问题引起的?