|  | 
| [SOLVED] v15.1.2 Crash on HidePane() | 
| Post Reply   | 
| Author | |
| xcentric   Groupie   Joined: 04 September 2008 Status: Offline Points: 41 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| xcentric   Groupie   Joined: 04 September 2008 Status: Offline Points: 41 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| xcentric   Groupie   Joined: 04 September 2008 Status: Offline Points: 41 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| xcentric   Groupie   Joined: 04 September 2008 Status: Offline Points: 41 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| xcentric   Groupie   Joined: 04 September 2008 Status: Offline Points: 41 |  Post Options  Thanks(0)  Quote  Reply  Posted: 05 August 2011 at 3:51am | 
| 
   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 |