<?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 : Crash on creating new CXTPPropertyGrid()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Crash on creating new CXTPPropertyGrid()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 16:05:37 +0000</pubDate>
  <lastBuildDate>Wed, 17 Sep 2008 02:31:18 +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=12167</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[Crash on creating new CXTPPropertyGrid() : Hi,  What platform defines you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12167&amp;PID=41076&amp;title=crash-on-creating-new-cxtppropertygrid#41076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12167<br /><strong>Posted:</strong> 17 September 2008 at 2:31am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>What platform defines you have in stdafx.h ? Are you sure youdin't change it to Vista ?</DIV><DIV>&nbsp;</DIV><DIV>try change to</DIV><DIV>&nbsp;</DIV><DIV><BR>#if _MSC_VER &gt; 1200</DIV><DIV>// Modify the following defines if you have to target a platform prior to the ones specified below.<BR>// Refer to MSDN for the latest info on corresponding values for different platforms.<BR>#ifndef WINVER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Allow use of features specific to Windows 95 and Windows NT 4 or later.<BR>#define WINVER 0x0400&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.<BR>#endif</DIV><DIV>#ifndef _WIN32_WINNT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Allow use of features specific to Windows NT 4 or later.<BR>#define _WIN32_WINNT 0x0400&nbsp;&nbsp;&nbsp;&nbsp; // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.<BR>#endif</DIV><DIV>#ifndef _WIN32_WINDOWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Allow use of features specific to Windows 98 or later.<BR>#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.<BR>#endif</DIV><DIV>#ifndef _WIN32_IE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Allow use of features specific to IE 4.0 or later.<BR>#define _WIN32_IE 0x0500&nbsp;&nbsp;&nbsp; // Change this to the appropriate value to target IE 5.0 or later.<BR>#endif</DIV><DIV>#endif<BR></DIV>]]>
   </description>
   <pubDate>Wed, 17 Sep 2008 02:31:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12167&amp;PID=41076&amp;title=crash-on-creating-new-cxtppropertygrid#41076</guid>
  </item> 
  <item>
   <title><![CDATA[Crash on creating new CXTPPropertyGrid() : Hi there,  I&amp;#039;m upgrading...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12167&amp;PID=41061&amp;title=crash-on-creating-new-cxtppropertygrid#41061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4544">mojonez</a><br /><strong>Subject:</strong> 12167<br /><strong>Posted:</strong> 16 September 2008 at 2:53pm<br /><br />Hi there,<DIV>&nbsp;</DIV><DIV>I'm upgrading code from v. 11.2.1 to 12.0.1, and I now get a crash error when creating a new property grid (same exact code):</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV><FONT color=#0000ff size=2><P>int</FONT><FONT size=2> CAVPane::OnCreate(LPCREATESTRUCT lpCreateStruct)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (CWnd::OnCreate(lpCreateStruct) == -1)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> -1;</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// PROPERTY GRID</P></FONT><FONT size=2><P>m_wndPropertyGrid = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> CXTPPropertyGrid(); // &lt;---crash</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_wndPropertyGrid-&gt;Create( rc, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, IDC_PROPERTY_GRID) )</P><P>{</P><P>AfxMessageBox(_T(</FONT><FONT color=#a31515 size=2>"Error creating propertygrid."</FONT><FONT size=2>));</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>...</P><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Crash ocurrs in CXTPPropertyGrid constructor at:</DIV></FONT></DIV><FONT size=2><P>VERIFY(m_pPaintManager-&gt;GetItemMetrics()-&gt;m_fontNormal.CreateFontIndirect(&amp;lfIcon));</P><DIV></DIV><P>&nbsp;</P><P>Which invokes an attach on the font, whose GDI object is non-null:</P><DIV></DIV><DIV></DIV><FONT size=2><P>BOOL CGdiObject::Attach(HGDIOBJ hObject)</P><P>{</P><P>ASSERT(m_hObject == NULL); </FONT><FONT color=#008000 size=2>// only attach once, detach on destroy</P></FONT><FONT size=2><P></FONT><FONT size=2>&nbsp;</P><DIV></DIV>Again, same exact code as v 11.2.1, which works fine.<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Is anyone else successfully creating the grid dynamically?</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>Thanks!</DIV><DIV>&nbsp;</DIV><DIV>Morgan</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 16 Sep 2008 14:53:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12167&amp;PID=41061&amp;title=crash-on-creating-new-cxtppropertygrid#41061</guid>
  </item> 
 </channel>
</rss>