Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Crash in CreateToolbar after migration to XTP 19.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash in CreateToolbar after migration to XTP 19.3

 Post Reply Post Reply
Author
Message
mihey View Drop Down
Groupie
Groupie
Avatar

Joined: 14 May 2003
Location: Germany
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote mihey Quote  Post ReplyReply Direct Link To This Post Topic: Crash in CreateToolbar after migration to XTP 19.3
    Posted: 22 September 2020 at 7:05am
Hi all, 
after migrating to XTP 19.3 I faced the issue that while calling CreateToolbar or ShowToolbar, in the notification handler:
CXTPPropertyGridToolBar::OnWndMsg

the parent grid object assigned via the line:  
CXTPPropertyGrid* pGrid = DYNAMIC_DOWNCAST(CXTPPropertyGrid, GetParent());

is NULL and the method crashes.

So I had to add a if (NULL == pGrid) check as a workaround.

Best regards, Mikhail


Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2021 at 11:09am
I see the same issue!
How can we fix this? When is it allowed to call ShowToolbar without leading to a crash?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2023 at 5:53am
Still not solved in 22.0!!!!
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.172 seconds.