Print Page | Close Window

[SOLVED] v15.1.2 Crash on HidePane()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=18773
Printed Date: 26 April 2024 at 9:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] v15.1.2 Crash on HidePane()
Posted By: xcentric
Subject: [SOLVED] v15.1.2 Crash on HidePane()
Date 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



Replies:
Posted By: Oleg
Date Posted: 04 August 2011 at 1:48pm
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


Posted By: xcentric
Date Posted: 04 August 2011 at 2:19pm
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


Posted By: xcentric
Date Posted: 04 August 2011 at 2:22pm
It crashes for both Release and Debug configurations.



-------------
Toolkit Pro 15.1.2
Windows 7 x64
Visual Studio 2008


Posted By: xcentric
Date Posted: 04 August 2011 at 3:01pm
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


Posted By: Oleg
Date Posted: 05 August 2011 at 3:35am
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


Posted By: xcentric
Date Posted: 05 August 2011 at 3:51am
Thanks for the workaround.



-------------
Toolkit Pro 15.1.2
Windows 7 x64
Visual Studio 2008



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net