Print Page | Close Window

Crashing RefreshMenu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=20288
Printed Date: 24 November 2024 at 6:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crashing RefreshMenu
Posted By: rock
Subject: Crashing RefreshMenu
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net