Professional UI Solutions
Site Map   /  Register


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 » Crash when statusbar SetPaneText while mainFrame is minimized Collapse All
Subject Author Date
Tom Morris Jun 18, 2007 - 6:11 PM

My MDI app crashes when the following conditions occur:
1. minimize mainframe
2. call the main status bar’s SetPaneText(...) while app is minimized.

While minimized, all tests for the status bar’s visibility return positive -- which seems odd.

My main view writes to the status bar periodically -- even when the app is minimized. Apparently, such attempts to set status bar text while the app is minimized causes the crash.

Is there a definitive test that I can perform on the statusbar’s, er, status so I can prevent crashes when the app is minimized?

Or, is this a bug?

Tom Morris Jun 20, 2007 - 3:47 PM

Thank you for the reply.

I think the problem may be a thread sync issue regarding the 3d engine I am using to render to the view. Not your problem.

I am experimenting with solutions in the view OnTimer() to change the sequence of calls re/ the 3d renderer and the ProfUIS statusbar. I have noticed greater stability.


Technical Support Jun 20, 2007 - 12:24 PM

Unfortunately we did not manage to reproduce this bug. We used a timer for testing:

void CMainFrame::OnTimer(UINT nIDEvent) 
	m_wndStatusBar.SetPaneText( 0, _T("Some Text") );
	CMDIFrameWnd ::OnTimer(nIDEvent);
Would you send us a test project that reproduces the problem?