Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [SOLVED] v15.1.2 Crash on HidePane()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] v15.1.2 Crash on HidePane()

 Post Reply Post Reply
Author
Message
xcentric View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcentric Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] v15.1.2 Crash on HidePane()
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
xcentric View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcentric Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
xcentric View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcentric Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
xcentric View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcentric Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
xcentric View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcentric Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2011 at 3:51am
Thanks for the workaround.

Toolkit Pro 15.1.2
Windows 7 x64
Visual Studio 2008
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.