CXTTabView Destructor Heap Corruption |
Post Reply |
Author | |
tommyvee
Groupie Joined: 21 August 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 04 October 2010 at 1:04am |
I have an application with CXTTabView that pops up a window with a "Heap corruption" warning while working through the windows functions after calling the CXTTabView destructor, when exiting from the application.
This error occurs in wincore.cpp at line 1033 (Visual Studio 2010 on W7), which is the line bResult = ::DestroyWindow(m_hWnd) below. At this time, the debugger gives ??? for m_hWnd and for m_pCtrlSite. Here is a cut and paste from wincore.cpp showing where the error occurs. #ifdef _AFX_NO_OCC_SUPPORT if (m_hWnd != NULL) bResult = ::DestroyWindow(m_hWnd); #else //_AFX_NO_OCC_SUPPORT if ((m_hWnd != NULL) || (m_pCtrlSite != NULL)) { if (m_pCtrlSite == NULL) bResult = ::DestroyWindow(m_hWnd); else bResult = m_pCtrlSite->DestroyControl(); } #endif //_AFX_NO_OCC_SUPPORT Does anyone have an idea of what might be causing this? Ideas about how to do additional debugging are also welcome. Thanks,
Tom |
|
tommyvee
Groupie Joined: 21 August 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
|
I did more testing and the heap corruption occurs when I attach a CTreeView-derived class to a CXTPDockingPane pane, so I will start a new topic in the DockingPane forum asking what about attaching a view might cause heap corruption.
Thanks in advance for any suggestions, Tom
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |