Print Page | Close Window

CXTPRibbonControlTab::OnSetPopup

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=24194
Printed Date: 21 November 2024 at 10:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPRibbonControlTab::OnSetPopup
Posted By: rdhd
Subject: CXTPRibbonControlTab::OnSetPopup
Date Posted: 18 August 2021 at 9:01am
If a ribbon is minimized, CXTPRibbonControlTab::OnSetPopup calls m_pCOmmandBar->InternalRelease. Then a few lines later it calls CreateTabPopupToolBar. We have code when hide flags are set on a combobox that examines the ribbon bar to find any other combobox the user might have added to the ribbon via customization. That code tests the command bar pointer before looking for any controls in it.

Since the InternalRelease call destroyed the current m_pCommandBar pointer, we are crashing.

I think that after InternalRelease is called, this code should immediately set m_pCommandBar to nullptr.



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