Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - PropertyGrid crashes after ResetContent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PropertyGrid crashes after ResetContent

 Post Reply Post Reply
Author
Message
8irmer View Drop Down
Newbie
Newbie


Joined: 14 July 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote 8irmer Quote  Post ReplyReply Direct Link To This Post Topic: PropertyGrid crashes after ResetContent
    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

 

 

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2003 at 6:10am

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

Thank you.

Back to Top
8irmer View Drop Down
Newbie
Newbie


Joined: 14 July 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote 8irmer Quote  Post ReplyReply Direct Link To This Post 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

 

 

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.219 seconds.