Print Page | Close Window

PropertyGrid crashes after ResetContent

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=100
Printed Date: 28 April 2024 at 8:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyGrid crashes after ResetContent
Posted By: 8irmer
Subject: PropertyGrid crashes after ResetContent
Date Posted: 14 July 2003 at 11:43am

I tried to change an existing PropertyGrid.

At first, i tried calling ResetContent(), and then adding new items. This works,

but when i try to open a value list, eg. the {true, false} list of a bool item, the program

crashes. When having a look with the debugger, the in-place list box control

seems to be unitialized (HWND=0).

My second try was deleting the old property grid, and then creating a new one,

but this had the same effect.

Do you, perhaps, have a static in-place list box control, which gets by mistake

destroyed, when calling ResetContent() of a a property grid, or deleting it ?

I updated to XTP 7100, but still have the same bug.

Regards,

Norbert Irmer

 

 

 




Replies:
Posted By: Oleg
Date Posted: 15 July 2003 at 6:10am

Please send to mailto:support@codejock.com - support@codejock.com the sample code with crash.

Thank you.



Posted By: 8irmer
Date Posted: 16 July 2003 at 5:16am

The bug is not so easy to reproduce.

I have one docking pane, which contains a listctrl with a list of objects, and a second  docking pane with a property grid, which shows the attributes of the currently selected object.

In the listctrl, i track with OnLvnItemChanged  the focused object, and recreate the property grid, when another object is focused.

The bug is, that when i press the button which opens the in-place listbox of the property grid, i get ON_NOTIFY_REFLECT(LVN_ITEMCHANGEDOnLvnItemchanged) for the object list contained in the first docking pane !!! (even though this list isn't focused, and doesn't change at all)

I will try to get this away by maintaining some internal state variables, but something with the XTP message handling is utterly wrong in regard to the in-place listboxes of property grid items

Regards,

Norbert Irmer

 

 




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