<?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 violati&#111;n when exit applicati&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Access violati&#111;n when exit applicati&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 13:35:28 +0000</pubDate>
  <lastBuildDate>Wed, 22 Mar 2006 04:46:49 +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=3824</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 violati&#111;n when exit applicati&#111;n : Finally I found my error:In CMainFrame::OnCreateControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11604&amp;title=access-violation-when-exit-application#11604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1863">JoseAngel</a><br /><strong>Subject:</strong> 3824<br /><strong>Posted:</strong> 22 March 2006 at 4:46am<br /><br />Finally I found my error:<br><br>In <span style="font-style: italic;">CMainFrame::OnCreateControl</span> I was assigning in <span style="font-style: italic;">lpCreateControl-&gt;pControl</span> a stack object, not a heap one.<br><br>When I change the stack control and become a pointer the application never crash when finish the application.<br><br>The error was really difficult to found. <br><br>Thank you.<br>]]>
   </description>
   <pubDate>Wed, 22 Mar 2006 04:46:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11604&amp;title=access-violation-when-exit-application#11604</guid>
  </item> 
  <item>
   <title><![CDATA[Access violati&#111;n when exit applicati&#111;n : I already found the source of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11599&amp;title=access-violation-when-exit-application#11599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1863">JoseAngel</a><br /><strong>Subject:</strong> 3824<br /><strong>Posted:</strong> 22 March 2006 at 1:45am<br /><br />I already found the source of error, ant it fault even with your samples.<br><br>Open your project <span style="font-style: italic;">PaneView</span>.<br><br>Edit the file <span style="font-style: italic;">PaneView.h </span>and add in the begining of the <span style="font-style: italic;">CPaneView</span> class definition the line in red color....<br><br><span style="color: rgb(0, 0, 255);">class </span>CPaneView : <span style="color: rgb(0, 0, 255);">public </span>CView<br>{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span style="color: rgb(255, 0, 0);"> CXTPControlComboBox&nbsp;&nbsp;&nbsp; m_wndTest;</span><br><br>protected: <span style="color: rgb(0, 153, 0);">// create from serialization only</span><br>&nbsp;....<br><br>Now compile and execute in release. When you close the application, it throw an exception.<br><br>]]>
   </description>
   <pubDate>Wed, 22 Mar 2006 01:45:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11599&amp;title=access-violation-when-exit-application#11599</guid>
  </item> 
  <item>
   <title><![CDATA[Access violati&#111;n when exit applicati&#111;n : Hello,  No, CXTPAccessible::GetAccessible...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11583&amp;title=access-violation-when-exit-application#11583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3824<br /><strong>Posted:</strong> 21 March 2006 at 12:30pm<br /><br /><P>Hello,</P><P>&nbsp;</P><P>No, CXTPAccessible::GetAccessible never calls because it overriden in implementations:</P><P>for example:</P><P><BR>CCmdTarget* CXTPCommandBar::GetAccessible()<BR>{<BR>&nbsp;return this;<BR>}</P><P>&nbsp;</P><P>Please, try to reproduce it with some our sample.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 21 Mar 2006 12:30:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11583&amp;title=access-violation-when-exit-application#11583</guid>
  </item> 
  <item>
   <title><![CDATA[Access violati&#111;n when exit applicati&#111;n : With v9.81 of the library, my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11582&amp;title=access-violation-when-exit-application#11582</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1863">JoseAngel</a><br /><strong>Subject:</strong> 3824<br /><strong>Posted:</strong> 21 March 2006 at 12:13pm<br /><br />With v9.81 of the library, my application (only in Release, never in Debug) generates an exception when exit.<br><br>Finally I discovered the problem is in the method <span style="font-style: italic;">STDMETHODIMP CXTPAccessible::XAccessible::QueryInterface</span>.<br><br>The method code is:<br><br>STDMETHODIMP CXTPAccessible::XAccessible::QueryInterface(<br>&nbsp;&nbsp;&nbsp; REFIID iid, LPVOID* ppvObj)<br>{<br>&nbsp;&nbsp;&nbsp; METHOD_PROLOGUE_EX_(CXTPAccessible, ExternalAccessible)<br>&nbsp;&nbsp;&nbsp; return  (HRESULT)pThis-&gt;GetAccessible()-&gt;ExternalQueryInterfac e(&amp;iid, ppvObj);<br>}<br><br>Tracing <span style="font-style: italic;">pThis-&gt;GetAccessible()</span>, the method call to the method <span style="font-style: italic;">CXTPAccessible::GetAccessible()</span> with source code:<br><br>CCmdTarget* CXTPAccessible::GetAccessible()<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(FALSE);<br>&nbsp;&nbsp;&nbsp; return NULL;<br>}<br><br>So it means the first method finally is something like this:<br><br>STDMETHODIMP CXTPAccessible::XAccessible::QueryInterface(<br>&nbsp;&nbsp;&nbsp; REFIID iid, LPVOID* ppvObj)<br>{<br>&nbsp;&nbsp;&nbsp; METHOD_PROLOGUE_EX_(CXTPAccessible, ExternalAccessible)<br>&nbsp;&nbsp;&nbsp; return &nbsp;&nbsp;&nbsp; (HRESULT)<span style="color: rgb(255, 51, 51); font-weight: bold;">NULL</span>-&gt;ExternalQueryInterface(&amp;iid, ppvObj);<br>}<br><br><br>Maybe <span style="font-style: italic;">pThis</span> in <span style="font-style: italic;">CXTPAccessible::XAccessible</span> shoud be something different than <span style="font-style: italic;">CXTPAccessible</span> (an inherited class)<br><br>Is this a problem of the library or a problem of my software?<br><br>Thanks.<br><br>]]>
   </description>
   <pubDate>Tue, 21 Mar 2006 12:13:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3824&amp;PID=11582&amp;title=access-violation-when-exit-application#11582</guid>
  </item> 
 </channel>
</rss>