![]() |
Tear off window causes crash on exit |
Post Reply ![]() |
Author | |
rconn ![]() Groupie ![]() Joined: 16 May 2007 Location: United States Status: Offline Points: 74 |
![]() ![]() ![]() ![]() ![]() Posted: 24 July 2022 at 4:12pm |
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? |
|
![]() |
|
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
|
|
![]() |
|
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(). |
|
![]() |
|
jw_statica ![]() Groupie ![]() Joined: 23 May 2018 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() |
Have you reproduced this issue?
|
|
![]() |
|
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 |
![]() ![]() ![]() ![]() ![]() |
It works for me too :-) Thank you for response ;)
|
|
![]() |
|
xsensordev ![]() Groupie ![]() Joined: 19 August 2021 Location: Canada Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
You're welcome, happy holidays!
|
|
![]() |
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 |