PropertyGrid Crashes |
Post Reply |
Author | |
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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. |
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
I guess actually adding the attachment would help ... ... here it is: 284_PropGridTest.zip |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thanks, Boyd, it was real bug :( The patch will be available in next release.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |