Crash in AdjustLayout using CMFCPropertyGridCtrl - by Dominic Amann

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 679332 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 7/13/2011 12:42:45 PM
Access Restriction Public


When using a CMFCPropertyGridCtrl, "selecting" a child item, then deleting the parent using DeleteProperty, then adding a new property and calling AdjustLayout triggers a crash, as the m_pSel pointer within the CMFCPropertyGridCtrl is now dangling.

I can work around this by calling SetCurSel(0) after deleting a parent object.
Sign in to post a comment.
Posted by Microsoft on 5/10/2012 at 5:59 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Dominic Amann on 7/15/2011 at 7:51 AM
Sorry - given work demands (late project) and the fact I have identified a work around, I cannot justify the hour or so to create a demo project for this.
Posted by MS-Moderator08 on 7/13/2011 at 10:17 PM
Thank you for reporting this issue. Could you please attach a demo project to help us reproduce this issue?
Posted by MS-Moderator01 on 7/13/2011 at 12:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(