![]() |
Tear off window causes crash on exit |
Post Reply ![]() |
Author | |
xsensordev ![]() Groupie ![]() Joined: 19 August 2021 Location: Canada Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 23 December 2022 at 12:24pm |
You're welcome, happy holidays!
|
|
![]() |
|
jw_statica ![]() Groupie ![]() Joined: 23 May 2018 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() |
It works for me too :-) Thank you for response ;)
|
|
![]() |
|
xsensordev ![]() Groupie ![]() Joined: 19 August 2021 Location: Canada Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
This may or may not work for you. It works for me as of Toolkit Pro 20.3.0 In CMainFrame::OnClose(), I call CXTPTabClientWnd::CloseAllTearOffFrames(). My CMainFrame's CXTPTabClientWnd member is _MTIClientWnd.
|
|
![]() |
|
jw_statica ![]() Groupie ![]() Joined: 23 May 2018 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() |
Have you reproduced this issue?
|
|
![]() |
|
jw_statica ![]() Groupie ![]() Joined: 23 May 2018 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() |
I have the same issue with ToolKitPro 22.0.0. I was testing the sample project RibbonResource.
Steps:
1. In function CMainFrame::OnCreate add one line m_wndTabClient.EnableTearOff(). 2. Open a few tabs. 3. Tear-off one of opened tabs. 4. Close application. 5. We have crash mentioned in topic CXTPTearOfFrame::DestroyWindow(). |
|
![]() |
|
agontarenko ![]() Admin Group ![]() Joined: 25 March 2016 Status: Offline Points: 219 |
![]() ![]() ![]() ![]() ![]() |
Hello, If it cannot be re-produced in any of our sample applications provided I would appreciate you sending a small code snippet or ideally a sample application so that we could debug it. Regards, Artem Gontarenko
|
|
![]() |
|
rconn ![]() Groupie ![]() Joined: 16 May 2007 Location: United States Status: Offline Points: 74 |
![]() ![]() ![]() ![]() ![]() |
Using Toolkit Pro 20.3, Visual Studio 2022, Windows 11.
When I enable tear off windows, tear one off, and then close the main client window the app will crash in CXTPTearOffFrame::DestroyWindow(). A bad pointer is returned from: CXTPTabClientWnd* pPrevTab = (CXTPTabClientWnd*)m_wndTabClient.m_lstPrevTab.GetHead(); If I close the tear off window first, then close the main client window I don't get the crash. Anybody else seen this? Is there a workaround? |
|
![]() |
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 |