![]() |
Tear off window causes crash on exit |
Post Reply
|
| Author | |
rconn
Groupie
Joined: 16 May 2007 Location: United States Status: Offline Points: 79 |
Post Options
Thanks(0)
Quote Reply
Topic: Tear off window causes crash on exitPosted: 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
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 July 2022 at 4:11am |
|
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: 36 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 December 2022 at 3:35am |
|
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: 36 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 December 2022 at 5:11am |
|
Have you reproduced this issue?
|
|
![]() |
|
xsensordev
Groupie
Joined: 19 August 2021 Location: Canada Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 December 2022 at 6:19pm |
|
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: 36 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 December 2022 at 5:02am |
|
It works for me too :-) Thank you for response ;)
|
|
![]() |
|
xsensordev
Groupie
Joined: 19 August 2021 Location: Canada Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 December 2022 at 12:24pm |
|
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 |