<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPPropertyGridItem::Remove causing Crash?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPPropertyGridItem::Remove causing Crash?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 19 May 2026 05:20:57 +0000</pubDate>
  <lastBuildDate>Fri, 16 Nov 2007 01:49:15 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=8735</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? : It works in my code too, thank...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28512&amp;title=cxtppropertygriditemremove-causing-crash#28512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3481">wolfgang6</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 16 November 2007 at 1:49am<br /><br />It works in my code too, thank you.]]>
   </description>
   <pubDate>Fri, 16 Nov 2007 01:49:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28512&amp;title=cxtppropertygriditemremove-causing-crash#28512</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? :    oleg wrote:Here what we changed:...Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28504&amp;title=cxtppropertygriditemremove-causing-crash#28504</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2166">IRMark</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 15 November 2007 at 2:16pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Here what we changed:<br>...<br></td></tr></table><br><br>Thanks Oleg, that one worked for us. I guess InternalRelease() has to be the very very (not even in an if statement) line in the function.<br><br>Also nice point jimmy.<br><br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2007 14:16:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28504&amp;title=cxtppropertygriditemremove-causing-crash#28504</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? : Hi,second if (m_pGrid) can be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28497&amp;title=cxtppropertygriditemremove-causing-crash#28497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 15 November 2007 at 9:28am<br /><br />Hi,<br><br>second if (m_pGrid) can be removed.<br><br>&nbsp;&nbsp;&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2007 09:28:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28497&amp;title=cxtppropertygriditemremove-causing-crash#28497</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? : Here what we changed:  void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28486&amp;title=cxtppropertygriditemremove-causing-crash#28486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 15 November 2007 at 8:39am<br /><br />Here what we changed:<DIV>&nbsp;</DIV><DIV>void CXTPPropertyGridItem::Remove()<BR>{<BR>&nbsp;if (!m_pGrid)<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;CXTPPropertyGridItems* pItems = GetParentItem() == 0 ? m_pGrid-&gt;m_pCategories : GetParentItem()-&gt;m_pChilds;<BR>&nbsp;ASSERT(pItems);<BR>&nbsp;int nIndex = pItems ? pItems-&gt;Find(this) : -1;</DIV><DIV>&nbsp;if (nIndex == -1)<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;pItems-&gt;m_arrItems.RemoveAt(nIndex);</DIV><DIV>&nbsp;m_pParent = NULL;</DIV><DIV>&nbsp;if (m_pGrid) m_pGrid-&gt;Refresh();<BR>&nbsp;InternalRelease();<BR>}</DIV>]]>
   </description>
   <pubDate>Thu, 15 Nov 2007 08:39:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28486&amp;title=cxtppropertygriditemremove-causing-crash#28486</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? : It should look like this:// Deletes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28484&amp;title=cxtppropertygriditemremove-causing-crash#28484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3481">wolfgang6</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 15 November 2007 at 6:28am<br /><br />It should look like this:<br><br><font face="Courier New, Courier, mono">// Deletes the item.<br>void CXTPPropertyGridItem::Remove()<br>{<br>&nbsp;&nbsp;&nbsp; if (!m_pGrid)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; CXTPPropertyGridItems* pItems = GetParentItem() == 0 ? m_pGrid-&gt;m_pCategories : GetParentItem()-&gt;m_pChilds;<br>&nbsp;&nbsp;&nbsp; ASSERT(pItems);<br>&nbsp;&nbsp;&nbsp; int nIndex = pItems ? pItems-&gt;Find(this) : -1;<br><br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pParent = NULL;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_pGrid) m_pGrid-&gt;Refresh();<br></font><br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; if (nIndex != -1)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItems-&gt;m_arrItems.RemoveAt(nIndex);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; InternalRelease();<br>&nbsp;&nbsp;&nbsp; }<br>}</font><br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2007 06:28:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28484&amp;title=cxtppropertygriditemremove-causing-crash#28484</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? :    oleg wrote:Hello,  There...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28467&amp;title=cxtppropertygriditemremove-causing-crash#28467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2166">IRMark</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 14 November 2007 at 11:37am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hello,<div>&nbsp;</div><div>There are not much changes for 11.2.2 for now, so I not sure. Think best slution for you is patch our sources and move <font face="Courier New">InternalRelease to the bottom.</font></div></td></tr></table><br><br>Hi, <br><br>We have also tried patching the code as follows:<br><br><font face="Courier New, Courier, mono">// Deletes the item.<br>void CXTPPropertyGridItem::Remove()<br>{<br>&nbsp;&nbsp;&nbsp; if (!m_pGrid)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; CXTPPropertyGridItems* pItems = GetParentItem() == 0 ? m_pGrid-&gt;m_pCategories : GetParentItem()-&gt;m_pChilds;<br>&nbsp;&nbsp;&nbsp; ASSERT(pItems);<br>&nbsp;&nbsp;&nbsp; int nIndex = pItems ? pItems-&gt;Find(this) : -1;<br><br>&nbsp;&nbsp;&nbsp; if (nIndex != -1)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pParent = NULL;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_pGrid) m_pGrid-&gt;Refresh();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItems-&gt;m_arrItems.RemoveAt(nIndex);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; InternalRelease();<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><font face="Verdana, Arial, Helvetica, sans-serif">But this does not seem to solve the problem either, and we have continued to experience a crash.<br><br>This is a serious issue for us as we have spent a lot of time on it, and are approaching the release of our software.<br><br></font></font>]]>
   </description>
   <pubDate>Wed, 14 Nov 2007 11:37:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28467&amp;title=cxtppropertygriditemremove-causing-crash#28467</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? :   It&amp;#039;s a great feeling...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28456&amp;title=cxtppropertygriditemremove-causing-crash#28456</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3481">wolfgang6</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 14 November 2007 at 7:07am<br /><br /><p ="MsoPlainText">It's a great feeling to help the gurus ;-)<o:p></o:p></p><p ="MsoPlainText"><o:p>&nbsp;</o:p></p><p ="MsoPlainText">Solving the problem we discussed above did not solve allthe problems in my code. I'm updating from version 10.3.1. Please take a look:<o:p></o:p></p><p ="MsoPlainText"><o:p>&nbsp;</o:p></p><p ="MsoPlainText">class CMyPropGrid : public CXTPPropertyGrid {...}<o:p></o:p></p><p ="MsoPlainText"><o:p>&nbsp;</o:p></p><p ="MsoPlainText">BOOL CMyPropGrid::Create(const RECT&amp; rect, CWnd*pParentWnd, UINT nID, DWORD dwListStyle) {<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp;</span>CXTPPropertyGrid::Create(rect, pParentWnd, nID, dwListStyle);<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp;</span>CXTPPropertyGridItem* pgitDummy = CreateItem(_T("dummy"),_T(""));<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp;</span>CXTPPropertyGridItem* pgitDummyCat =AddCategory(_T("DUMMY-CAT"));<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp;</span>pgitDummyCat-&gt;AddChildItem(pgitDummy);<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp; </span>//...compute thegrid height for x rows using heigth of pigtDummy<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp;</span>pgitDummy-&gt;Remove(); // !<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp;</span>pgitDummyCat-&gt;Remove(); // !<o:p></o:p></p><p ="MsoPlainText"><span style="">&nbsp; </span>//...<o:p></o:p></p><p ="MsoPlainText"><span style="color: black;"><span style="">&nbsp; </span>ResetContent();</span></p>&nbsp; //...<br><span style="color: black;"><o:p></o:p></span><p ="MsoPlainText">}<o:p></o:p></p><p ="MsoPlainText"><o:p>&nbsp;</o:p></p><p ="MsoPlainText">With 12.2.1, I have to skip pgitDummy-&gt;Remove()or pgitDummyCat-&gt;Remove() or both. Otherwise CXTPPropertyGridView::ResetContent() runsinto a memory fault at pItem-&gt;SetVisible(FALSE); pItem == pguitDummyCat atthis time.<o:p></o:p></p><p ="MsoPlainText"><o:p>&nbsp;</o:p></p><p ="MsoPlainText">Regards<o:p></o:p></p><p ="MsoPlainText">Wolfgang<o:p></o:p></p>]]>
   </description>
   <pubDate>Wed, 14 Nov 2007 07:07:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28456&amp;title=cxtppropertygriditemremove-causing-crash#28456</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? : Hello,  There are not much changes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28445&amp;title=cxtppropertygriditemremove-causing-crash#28445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 14 November 2007 at 12:59am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>There are not much changes for 11.2.2 for now, so I not sure. Think best slution for you is patch our sources and move <FONT face="Courier New">InternalRelease to the bottom.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 14 Nov 2007 00:59:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28445&amp;title=cxtppropertygriditemremove-causing-crash#28445</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? :    oleg wrote: Yes, think we...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28433&amp;title=cxtppropertygriditemremove-causing-crash#28433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2166">IRMark</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 13 November 2007 at 1:06pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><div>Yes, think we will release&nbsp; some 11.2.2 with this fix. </div><div>Thnks for point this bug.</div></td></tr></table><br><br>No Problem Oleg, any idea when 11.2.2 will be released? We have a release coming up so I'm just trying to decide if I want to use your workaround or if I should hold off for the new version.<br>]]>
   </description>
   <pubDate>Tue, 13 Nov 2007 13:06:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28433&amp;title=cxtppropertygriditemremove-causing-crash#28433</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItem::Remove causing Crash? : Hi, Yes, think we will release...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28430&amp;title=cxtppropertygriditemremove-causing-crash#28430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8735<br /><strong>Posted:</strong> 13 November 2007 at 1:00pm<br /><br /><DIV>Hi,</DIV><DIV>Yes, think we will release&nbsp; some 11.2.2 with this fix. </DIV><DIV>Thnks for point this bug.</DIV>]]>
   </description>
   <pubDate>Tue, 13 Nov 2007 13:00:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8735&amp;PID=28430&amp;title=cxtppropertygriditemremove-causing-crash#28430</guid>
  </item> 
 </channel>
</rss>