Print Page | Close Window

PropertyGrid Crashes

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=490
Printed Date: 21 November 2024 at 8:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyGrid Crashes
Posted By: Boyd
Subject: PropertyGrid Crashes
Date 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!!




Replies:
Posted By: SuperMario
Date 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.


Posted By: Boyd
Date Posted: 03 March 2004 at 11:55am

I guess actually adding the attachment would help  ...

... here it is: http://forum.codejock.com/uploads/Boyd/284_PropGridTest.zip - 284_PropGridTest.zip



Posted By: SuperMario
Date 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.  


Posted By: Oleg
Date 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



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