Crashing RefreshMenu |
Post Reply |
Author | |
rock
Groupie Joined: 27 October 2005 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 08 November 2012 at 6:06pm |
I have a tabbed MDI window that crashes when I close the window. The crash occurs during CXTPMenuBar::OnTimer() when calling CXTPMenuBar::RefreshMenu(). The crash occurs within CXTPMenuBar::GetActiveMdiChildWnd(). The crash is on the line: ASSERT(hWnd == NULL || ::IsWindow(hWnd));
hWnd is not NULL so ::IsWindow() is failing. One odd thing is that there are 2 tabs in the MDI Window, one a Browser (IE) and the other an Editor window. If the Browser tab is active when the Window is closed, no crash. If the Editor is active, it crashes. Both have the same menus & command bar. Any thoughts on what is happening? Is there a way to suspend the RefreshMenu timer until the window if completely destroyed?
|
|
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 |