Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - PropertyGrid Crashes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PropertyGrid Crashes

 Post Reply Post Reply
Author
Message
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Topic: PropertyGrid Crashes
    Posted: 03 March 2004 at 10:59am

There is a certain scenario which will always crash the PropertyGrid control.

If you edit an item in the grid and then click another item in the grid (without first hitting <Enter> to submit the change), the grid will crash if the categories are cleared in the 'ValueChanged' event.  If you hit <Enter> before changing your selection, you will not crash.

The attached project and exe file (attached in message below) demonstrates this issue (Requires v8.61 of PropertyGrid).  Launch the PropGridCrash.exe file.  Edit the value of Item 1.  Without hitting <Enter>, click on the value of Item 2.  The application will crash when the 'Categories.Clear' method is called in the 'ValueChanged' event of the PropertyGrid.

This same bug is actually apparent in the Designer Studio as well (although it could be caused by something other than the 'Categories.Clear' method).  Open the Designer Studio and a standard template will be automatically loaded.  Click the 'New' control in the 'Controls' pane.  In the 'Properties' pane, change the 'ID' value from 'ID_FIEW_NEW' to 'ID_NEW'.  Without first hitting <Enter>, now click on the empty value for the 'Icon ID' property.  The Designer Studio will crash.

Codejock, I hope a fix for this bug can make it into the 8.62 release.  Please let me know what your plans will be for providing a solution because this issue is preventing me from implementing the PropertyGrid in my application.

Thanks!!



Edited by Boyd
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2004 at 11:39am
Boyd,
Where is the attachment?  I noticed the bug in the Designer Studio as well.  But I havent been able to reproduce the error in an application I created myself.  I have tried with bound and regular grid items.
Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2004 at 11:55am

I guess actually adding the attachment would help  ...

... here it is: 284_PropGridTest.zip

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2004 at 12:15pm
Ok,I see what you mean.  It crashes here as well.  Both the designer and property grid crash on the same line of code.  Maybe the Clear method is clearing the value before it is actually updated.  
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: 04 March 2004 at 1:27pm
Thanks, Boyd, it was real bug :( The patch will be available in next release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.170 seconds.