[SOLVED] v15.1.2 Crash on HidePane() |
Post Reply |
Author | |
xcentric
Groupie Joined: 04 September 2008 Status: Offline Points: 41 |
Post Options
Thanks(0)
Posted: 04 August 2011 at 12:09am |
To reproduce it, modify MDIPanes sample:
add the following code on top of void CMainFrame::OnThemeDefault() CWnd* pWndClient = CWnd::FromHandle(m_hWndMDIClient); CChildFrame* pWndChild = (CChildFrame*)pWndClient->GetWindow(GW_CHILD); pWndChild->m_paneManager.HidePane(IDR_PANE_PROPERTIES); Then run the sample and select View->Theme->Office 2000 It will crash somewhere deep inside of HidePane() |
|
Toolkit Pro 15.1.2
Windows 7 x64 Visual Studio 2008 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hmm. tried compile with different configurations and with some Visual studios and can't catch it.
Do you run simple Debug Win 32 Configuration + Visual Studio 2008 ? Are you sure you didn't make more changes in this sample or in dockingpane sources ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
xcentric
Groupie Joined: 04 September 2008 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
Those 3 lines are only changes.
Toolkit Pro compiled as a unicode static library (to link with MFC statically). The bug was reproduced on Windows XP and Windows 7. One more thing - x64 version did not crash, but also did not hide a pane (nothing happens). I just tested the sample with Toolkit Pro 12.1.1 and it works. |
|
Toolkit Pro 15.1.2
Windows 7 x64 Visual Studio 2008 |
|
xcentric
Groupie Joined: 04 September 2008 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
It crashes for both Release and Debug configurations.
|
|
Toolkit Pro 15.1.2
Windows 7 x64 Visual Studio 2008 |
|
xcentric
Groupie Joined: 04 September 2008 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
Just tested with DLL version of Toolkit Pro 15.1.2 - it works.
So, looks like the problem appears with the static version. |
|
Toolkit Pro 15.1.2
Windows 7 x64 Visual Studio 2008 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thanks. Confirmed problem with static version and fixed for next release. Please as workaround simply replace line to
pWndChild->m_paneManager.HidePane(pWndChild->m_paneManager.FindPane(IDR_PANE_PROPERTIES));
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
xcentric
Groupie Joined: 04 September 2008 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
Thanks for the workaround.
|
|
Toolkit Pro 15.1.2
Windows 7 x64 Visual Studio 2008 |
|
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 |