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 » Deleting a toolbar in release mode Collapse All
Subject Author Date
Suhai Gyorgy Jun 27, 2007 - 7:12 AM

Dear Support,

I’m using ProfUIS v2641 downloaded from your FTP server on 3/21/2007.
I’m having trouble with deleting a toolbar. I’ve reduced the problem to this code:

	CExtToolControlBar *pDynBar = new CExtToolControlBar();
	pDynBar->Create(_T("Dynamically created"), AfxGetMainWnd(), ID_SOME_ID);
	delete pDynBar;
In release mode (Static Unicode Release), app crashes on the delete line. I tried stepping through the destructor of CExtToolControlBar in debug mode, but I couldn’t see what could cause the problem. App does not crash in debug mode. AfxGetMainWnd() is a CFrameWnd-derived object. When I wrote and tested this part of our application, it worked fine, but I think we used another version of ProfUIS at that time, unfortunately I couldn’t tell which one.

Could you please advise?
Thank you!
Chris

Technical Support Jun 27, 2007 - 12:03 PM

Please do a search for the KillBar() function in Prof-UIS forums. It is exactly what you need.

Suhai Gyorgy Jun 28, 2007 - 4:08 AM

Great, thank you! I guess it’d be helpful to make a FAQ of this issue, as it is not obvious at all.