Print Page | Close Window

Crash in CXTColorPopup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8810
Printed Date: 14 November 2025 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash in CXTColorPopup
Posted By: Silvery
Subject: Crash in CXTColorPopup
Date Posted: 16 November 2007 at 5:58pm
Xtreme Toolkit Pro v11.2.1 on Vista
 
CXTColorPopup in MDI applications crashes on closing "More Colors..." dialog which was opened from the popup.
 
To reproduce the crash take CCustomItemColor from "PropertyGrid\GridSample" sample and add it to Property Grid in "PropertyGrid\DrawClient" sample. Open the color popup, choose "More Colors...", the dialog opens but the popup closes (which is different from behavior in "PropertyGrid\GridSample") and once you close the dialog you'll get the crash.
 
Also, CXTColorPopup sends two CPN_XT_SELENDCANCEL if it closed by clicking on a different window, once from CXTColorPopup::OnKillFocus and once from CXTColorPopup::OnActivateApp, and it can be reproduced in "PropertyGrid\GridSample" sample by adding corresponding handle in CCustomItemColorPopup.
 
Thanks.



Replies:
Posted By: Oleg
Date Posted: 17 November 2007 at 12:44am
Hi,
Thanks,  can you please patch sources - in CXTColorPopup::OnKillFocus replace
 
 if (!IsColorDlgVisible())
 {
  EndSelection(-1);
 }
to
 
 if (!m_pColorDlg)
 {
  EndSelection(-1);
 }


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Silvery
Date Posted: 17 November 2007 at 2:17am
Thanks, the patch fixed the crash.
 
Besides CPN_XT_SELENDCANCEL being sent twice on canceling the popup, CPN_XT_SELENDCANCEL event is also sent after CPN_XT_SELENDOK event on selection of a color.



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