Reproducible crash - selecting an autohidden pane |
Post Reply |
Author | |
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
Posted: 05 January 2007 at 6:26am |
We use XTP 10.1; in the "PaneActions" sample try to close all panes (from GUI), then call a method like this:
void CMainFrame::OnDoCrashAction() { CXTPDockingPane* pPaneResourceView = m_paneManager.FindPane(IDR_PANE_RESOURCEVIEW); if (pPaneResourceView) { m_paneManager.ShowPane(pPaneResourceView); m_paneManager.ToggleAutoHide(pPaneResourceView); pPaneResourceView->Select(); } } With this code I'd like to re-open an autohidden pane and select it. However, first I get an assert complaining about atlmfc\include\afxwin2.inl, line 150. If I click ignore, then it's OK until I hover the mouse above the newly opened ResourceView. By this hovering I get a crash: an access violation inside CXTPDockingPaneAutoHidePanel::OnMouseHover(). The value of m_pActiveWnd->m_pPane is 0xfeeefeee. Do you know any workaround for this? Any fixes available in newer versions? Thank you, in advance! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
This code works for me:
CXTPDockingPane* pPaneResourceView = m_paneManager.FindPane(IDR_PANE_RESOURCEVIEW);
if (pPaneResourceView) { m_paneManager.ShowPane(pPaneResourceView); pPaneResourceView->Hide(); RecalcLayout(); pPaneResourceView->Select(); } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Indeed, RecalcLayout() was the key to solution. Excellent, thank you.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |