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

CXTPRibbonControlTab::OnSetPopup

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPRibbonControlTab::OnSetPopup
    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.
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.176 seconds.