<?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 : Access Violation in CXTPTabManager::DeleteItem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Access Violation in CXTPTabManager::DeleteItem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:39:38 +0000</pubDate>
  <lastBuildDate>Fri, 10 Apr 2009 18:28:03 +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=13782</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[Access Violation in CXTPTabManager::DeleteItem : We did apply that fix, but now...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13782&amp;PID=47779&amp;title=access-violation-in-cxtptabmanagerdeleteitem#47779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5088">jayhamiltoniv</a><br /><strong>Subject:</strong> 13782<br /><strong>Posted:</strong> 10 April 2009 at 6:28pm<br /><br />We did apply that fix, but now when upgrading to version 13 the same crash is still present so we have to apply the correction again.&nbsp; Are there any plans to correct the crash?<br><br><a href="uploads/20090410_182709_codejock_tabc&#111;n.zip" target="_blank">uploads/20090410_182709_codejock_tabcon.zip</a><br><br>Thanks,<br>Jay<br>]]>
   </description>
   <pubDate>Fri, 10 Apr 2009 18:28:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13782&amp;PID=47779&amp;title=access-violation-in-cxtptabmanagerdeleteitem#47779</guid>
  </item> 
  <item>
   <title><![CDATA[Access Violation in CXTPTabManager::DeleteItem : Hi, You can modify your sources...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13782&amp;PID=47076&amp;title=access-violation-in-cxtptabmanagerdeleteitem#47076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13782<br /><strong>Posted:</strong> 25 March 2009 at 2:27am<br /><br /><P>Hi,</P><DIV>You can modify your sources and add if (<FONT size=3 face=Calibri>bSelected)</FONT>&nbsp;m_pSelected = NULL; - and rebuild.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 02:27:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13782&amp;PID=47076&amp;title=access-violation-in-cxtptabmanagerdeleteitem#47076</guid>
  </item> 
  <item>
   <title><![CDATA[Access Violation in CXTPTabManager::DeleteItem : Hello,   We currently are seeing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13782&amp;PID=47052&amp;title=access-violation-in-cxtptabmanagerdeleteitem#47052</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5088">jayhamiltoniv</a><br /><strong>Subject:</strong> 13782<br /><strong>Posted:</strong> 24 March 2009 at 3:37pm<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>We currently are seeing a crash when using the tab manager, are there any current workarounds for this?&nbsp; The comments describe the issue.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,<BR>Jay</DIV><DIV>&nbsp;</DIV><DIV>Version 9.7 - June 25, 2005</DIV><DIV>&nbsp;</DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT face=Calibri size=3>BOOL CXTPTabManager::DeleteItem(int nItem)</FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT face=Calibri size=3>{</FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>if (nItem &lt; 0 || nItem &gt;= GetItemCount())</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return FALSE;</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P><FONT face=Calibri size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>BOOL bSelected = m_pSelected == m_arrItems&#091;nItem&#093;;</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: red">m_arrItems&#091;nItem&#093;-&gt;InternalRelease();<SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// m_pSelected now points to deleted memory<O:P></O:P></SPAN></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face=Calibri size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_arrItems.RemoveAt(nItem);</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face=Calibri size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>if (bSelected)</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>SetCurSel(nItem);<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: red">// Calls Setfocus on different tab.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>If the tab’s OnFocus handler <O:P></O:P></SPAN></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: red"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// calls GetSelectedItem, there is a possiblility of a crash.<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: red"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>//<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: red"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// Additionally, if a WM_PAINT message is handled by the CXTTabManager<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: red"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// as part of the OnFocus (e.g. a message box displays in the OnFocus handler)<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: red"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// Codejock will try to use m_pSelected and crash.<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face=Calibri size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face=Calibri size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>OnItemsChanged();</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face=Calibri size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return TRUE;</FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT face=Calibri size=3>}</FONT></P><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 15:37:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13782&amp;PID=47052&amp;title=access-violation-in-cxtptabmanagerdeleteitem#47052</guid>
  </item> 
 </channel>
</rss>