There is an observation pointer (m_pPressed) that will be initialized in CMFCRibbonBar::OnLButtonDown() function. This pointer needs to be valid during the live time of the CMFCRibbonPanel elements on the ribbon bar. In case the user removes some or all elements with CMFCRibbonPanel::RemoveAll() or MFCRibbonPanel::Remove() before the mouse interaction is completely ended, the observation pointer becomes invalid and the application crashes.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Operating System Language