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 General Discussion » ProfileBarStateLoad with unsed registry information Collapse All
Subject Author Date
Sung Park Jul 30, 2004 - 7:52 PM

In my applicatoin, I used to have two contorl bar and the information of size got saved in the registry. I took out one bar because it is no longer used. The location of registry stays the same because of the size information for another bar left. In this case, I got crash from ProfileBarStateLoad() function. If I clear out registry, it works fine. I guess the crash happens due to the unsed registry information. Is there a way to resolve this?


Thanks.

Technical Support Aug 2, 2004 - 12:37 AM

The CExtControlBar::ProfileBarStateLoad method assumes that all control bars whose states are saved in the registry are already created and it can start restoring their state. If some control bars are missing, it raises and catches an internal C++ exception which does not cause the application crash and is absolutely invisible in the release version of your application. Anyway you should not have any problems.