![]() |
Crash in CXTColorPopup |
Post Reply
|
| Author | |
Silvery
Groupie
Joined: 21 September 2007 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: Crash in CXTColorPopupPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Silvery
Groupie
Joined: 21 September 2007 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
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 |