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 » the new version 3.2 Crash Collapse All
Subject Author Date
jun liu Apr 25, 2005 - 9:07 AM

For the new version CExtDynamicBarSite::BarFree(pbar);


Will crash if the the pbar is floating or MDI.


For example: in MDI_DynamicBaras sample add one command to free first bar:


void CMainFrame::OnFree()
{

 CExtDynamicBarSite::BarFree(m_pBarPersistent);


}


 



The previous version 3.1 will not have this problem.


 


Thanks.


 

Technical Support Apr 26, 2005 - 4:56 AM

It seems the answer to the problem is in your message. You are trying to free a persistent bar. This operation is not supported by the design of the dynamic bar site. You did not encounter this problem in the previous code release because persistent control bars were added only in the latest release. Please note that persistent bars are designed as really persistent components which are never destroyed and created again during all the application’s runtime even if the application reloads the control bar’s state.

jun liu Apr 26, 2005 - 9:17 AM

m_pBarPersistent is just a name, It is dynamiclly created when program start runing.


otherwise you can try this program, it also crash if you float any DynamicBar and try to BarFree it.


void CMainFrame::OnFree()
{
 while (m_arrAllDynamicBars.GetSize()){
  CExtDynamicBarSite::BarFree(m_arrAllDynamicBars[0]);
  m_arrAllDynamicBars.RemoveAt(0);
 }
 //CExtDynamicBarSite::BarFree(m_pBarPersistent);


}

Technical Support Apr 29, 2005 - 3:08 AM

We have located and fixed this bug. Thank you! If you are the registered user with valid tech support, please send us your user name and we will provide you with the bug fixed source code. Otherwise we can provide you with bug fixed compiled modules and updated header files.