Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Prof-UIS keeps crashing on CDC::Detach() , CHandleMap::RemoveHandle in CExtButton, CExtStatusCon Collapse All
Subject Author Date
steven frierdich Feb 7, 2007 - 8:04 AM

Prof UIS keeps crashing. It all seems to have to deal with CPaint destructor. Below is a snippet of code that appears in the debugger when the crashe occurs. There is not specific entry point or sequence when the application crashes. The crash occurs randomly crashes.. When the crash occurs CExtButton, CExtStatusControlBar, CExtToolControlBar, or CExtControlBar will appear in the debugger. But the lines listed below always seem to show up. The crash always ends up showing CDC::Detach() Line 122 and CHandleMap::RemoveHandle in the debugger. Can anyone suggest how to fix this or a likely cause. GDI Plus was introduced in the application and the crash started occurring about two weeks late. I can not see how using GDI Plus would cause this crash since the crash seems to originate in CExtButton, CExtStatusControlBar, CExtToolControlBar, or CextControlBar class.

_d.exe!_CrtDbgBreak() Line 89    C
_d.exe!_VCrtDbgReportA(int nRptType=2, const char * szFile=0x00e832f0, int nLine=218, const char * szModule=0x00000000, const char * szFormat=0x00000000, char * arglist=0x00126ff8) Line 290    C
_d.exe!_CrtDbgReportV(int nRptType=2, const char * szFile=0x00e832f0, int nLine=218, const char * szModule=0x00000000, const char * szFormat=0x00000000, char * arglist=0x00126ff8) Line 300 + 0x1d bytes    C
_d.exe!_CrtDbgReport(int nRptType=2, const char * szFile=0x00e832f0, int nLine=218, const char * szModule=0x00000000, const char * szFormat=0x00000000, ...) Line 317 + 0x1d bytes    C
_d.exe!AfxAssertFailedLine(const char * lpszFileName=0x00e832f0, int nLine=218) Line 25 + 0x13 bytes    C++
_d.exe!CHandleMap::RemoveHandle(void * h=0x6e011367) Line 218 + 0x1a bytes    C++
_d.exe!CDC::Detach() Line 122    C++
_d.exe!CWindowDC::~CWindowDC() Line 1064 + 0x8 bytes    C++
_d.exe!CExtControlBar::OnNcPaint() Line 7897 + 0x1e bytes    C++
_d.exe!CWnd::OnWndMsg(unsigned int message=133, unsigned int wParam=1, long lParam=0, long * pResult=0x00127390) Line 2028    C++
_d.exe!CWnd::WindowProc(unsigned int message=133, unsigned int wParam=1, long lParam=0) Line 1741 + 0x20 bytes    C++
_d.exe!CControlBar::WindowProc(unsigned int nMsg=133, unsigned int wParam=1, long lParam=0) Line 504 + 0x14 bytes    C++
_d.exe!CExtControlBar::WindowProc(unsigned int message=133, unsigned int wParam=1, long lParam=0) Line 7010    C++

Technical Support Feb 8, 2007 - 3:53 AM

Please let us know if we can reproduce such a crash using any of samples provided with Prof-UIS?