views:

87

answers:

0

Ribbon application crash on some systems while it works fine on others. I have statically linked to MFC. Still it crashes on random systems. I debugged it on the system on which it crashed and found that the FindByID returns NULL for CMFCRibbonSlider in OnUpdate.. function. Other ribbon controls are working fine.

CMFCRibbonBar* pRibbon = ((CMainFrame*) GetTopLevelFrame())->GetRibbonBar(); ASSERT_VALID(pRibbon); CMFCRibbonSlider* pSlider = DYNAMIC_DOWNCAST(CMFCRibbonSlider,pRibbon->GetCategory(0)->FindByID(ID_EDIT_SOD));

Why does it return NULL only on some systems ? What might be the problem?

Thanks in Advanc