Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » How do I add/remove toolbars and keep the workspace serialization from GPF'ing? Collapse All
Subject Author Date
Timothy Anderson May 6, 2008 - 4:17 PM

I’ve been adding and removing toolbars from my app and I’m constantly gpf’ing out of the workspace serialization. Is there an official way to trap this? I’m using VS2K5 and profuis 282.


Problem is when i’m done adding in a new toolbar the end user is going to experience the same gpf’ing with the final app.


Access off of a null pointer at


ProfUIS282md.dll!CExtControlBar::InternalFriendlyFrameWnd::SetOuterDockState(const CDockState & state={...}, const CArray<CExtControlBar::OuterItemData_t,CExtControlBar::OuterItemData_t &> & arrOuterProps={...}, bool bSerializeFixedBarsState=true, bool bSerializeResizableBarsState=true)  Line 2890 + 0x6 bytes C++


The pExtBar it pulls from


CExtControlBar * pExtBar = STATIC_DOWNCAST(CExtControlBar, GetControlBar( _oid.m_nBarID ));

is null.


Technical Support May 7, 2008 - 1:41 PM

We confirm this issue. This line of code should be replaced with (two places):

            CControlBar * pTmpBar = GetControlBar( _oid.m_nBarID );
            if( pTmpBar == NULL )
                  continue;
            CExtControlBar * pExtBar = STATIC_DOWNCAST( CExtControlBar, pTmpBar );


Timothy Anderson May 7, 2008 - 3:07 PM

Thanks again! I wasn’t sure if the fix was that straight forward. Thanks for the confirmation.

Timothy Anderson May 6, 2008 - 4:25 PM

I did tuck this into a try catch with the appropriate value set but I keep getting blown out with this new weird VS2K5 exception handling.