Print Page | Close Window

Crash in CreateToolbar after migration to XTP 19.3

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=24064
Printed Date: 23 November 2024 at 3:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash in CreateToolbar after migration to XTP 19.3
Posted By: mihey
Subject: Crash in CreateToolbar after migration to XTP 19.3
Date 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





Replies:
Posted By: mgampi
Date 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


Posted By: mgampi
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net