Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Crashing RefreshMenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crashing RefreshMenu

 Post Reply Post Reply
Author
Message
rock View Drop Down
Groupie
Groupie


Joined: 27 October 2005
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote rock Quote  Post ReplyReply Direct Link To This Post Topic: Crashing RefreshMenu
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.137 seconds.