<?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 : You declared a destructor as non-virtual</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : You declared a destructor as non-virtual]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 00:22:42 +0000</pubDate>
  <lastBuildDate>Mon, 11 Dec 2006 09:06:57 +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=5676</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[You declared a destructor as non-virtual : Hi Oleg,  I finally found where...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=18082&amp;title=you-declared-a-destructor-as-nonvirtual#18082</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 11 December 2006 at 9:06am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>I finally found where was the problem. It isn't Codejock, it's our code :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; virtual void&nbsp;PostNcDestroy() {};&nbsp;&nbsp; // in child.h</DIV><DIV>&nbsp;</DIV><DIV>This is the method who calls "delete this;"...</DIV><DIV>&nbsp;</DIV><DIV>Sorry for the disturb and thank you very much for your help,</DIV><DIV>Best regards,</DIV>]]>
   </description>
   <pubDate>Mon, 11 Dec 2006 09:06:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=18082&amp;title=you-declared-a-destructor-as-nonvirtual#18082</guid>
  </item> 
  <item>
   <title><![CDATA[You declared a destructor as non-virtual : It must be called from PostNcDestroy.....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17909&amp;title=you-declared-a-destructor-as-nonvirtual#17909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 04 December 2006 at 1:05pm<br /><br /><P>It must be called from PostNcDestroy.. mey be override this method or something.</P>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 13:05:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17909&amp;title=you-declared-a-destructor-as-nonvirtual#17909</guid>
  </item> 
  <item>
   <title><![CDATA[You declared a destructor as non-virtual : We have temporarily placed our...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17903&amp;title=you-declared-a-destructor-as-nonvirtual#17903</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 04 December 2006 at 11:42am<br /><br /><P>We have temporarily placed our cleanup code inside method OnDestroy (WM_DESTROY), to avoid memory leaks.</P><DIV></DIV><DIV>Please tell us if you have more information about this destructor.</DIV><DIV>&nbsp;</DIV><DIV>Thanks !</DIV><DIV>Regards,</DIV>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 11:42:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17903&amp;title=you-declared-a-destructor-as-nonvirtual#17903</guid>
  </item> 
  <item>
   <title><![CDATA[You declared a destructor as non-virtual : Hi,  Ok, then do you know why...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17901&amp;title=you-declared-a-destructor-as-nonvirtual#17901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 04 December 2006 at 11:26am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Ok, then do you know why our destructor of our CMDIChildWnd is never called ?</DIV><DIV>&nbsp;</DIV><DIV>Here is our code :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>#define CChildFrameBase CXTPFrameWndBase&lt;CMDIChildWnd&gt;</DIV><DIV>&nbsp;</DIV><DIV>class CLASS_DECL_FCORE CFMDIChildWnd : public CChildFrameBase<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DECLARE_DYNCREATE(CFMDIChildWnd)<BR>protected:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFMDIChildWnd();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // protected constructor used by dynamic creation<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; virtual ~CFMDIChildWnd();<BR>...<BR></DIV><DIV>&nbsp;</DIV><DIV>Perhaps it's due to&nbsp;missing DECLARE_DYNCREATE(...)&nbsp;?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 11:26:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17901&amp;title=you-declared-a-destructor-as-nonvirtual#17901</guid>
  </item> 
  <item>
   <title><![CDATA[You declared a destructor as non-virtual : Hi, it is not bug. All CWnd derived...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17899&amp;title=you-declared-a-destructor-as-nonvirtual#17899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 04 December 2006 at 10:57am<br /><br /><DIV>Hi,</DIV><DIV>it is not bug. All CWnd derived classes have virtual destuctors. virtual keyword doesn't requried.</DIV>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 10:57:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17899&amp;title=you-declared-a-destructor-as-nonvirtual#17899</guid>
  </item> 
  <item>
   <title><![CDATA[You declared a destructor as non-virtual : P.S. : Same problem for the class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17890&amp;title=you-declared-a-destructor-as-nonvirtual#17890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 04 December 2006 at 9:20am<br /><br />P.S. : Same problem for the class <FONT size=2>CXTPCommandBarsSiteBase</FONT>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 09:20:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17890&amp;title=you-declared-a-destructor-as-nonvirtual#17890</guid>
  </item> 
  <item>
   <title><![CDATA[You declared a destructor as non-virtual : Hello,  It seems that you have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17889&amp;title=you-declared-a-destructor-as-nonvirtual#17889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5676<br /><strong>Posted:</strong> 04 December 2006 at 9:18am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>It seems that you have declared a destructor as non-virtual, all our classes derived from CXTPFrameWndBase do not have their destructor called, thus making some memory leaks&nbsp;to our objects.</DIV><DIV>&nbsp;</DIV><DIV>Here is your code :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><U>In your file "XTPFrameWnd.h"</U> :</DIV><DIV><BR>class CXTPFrameWndBase : public CXTPCommandBarsSiteBase&lt;TBase&gt;<BR>{<BR>public:<BR>&nbsp;&nbsp;&nbsp; //-----------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; // Summary:<BR>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp; Constructs a CXTPFrameWndBase object<BR>&nbsp;&nbsp;&nbsp; //-----------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; CXTPFrameWndBase()<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; //-----------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; // Summary:<BR>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp; Destroys a CXTPFrameWndBase object, handles cleanup and deallocation<BR>&nbsp;&nbsp;&nbsp; //-----------------------------------------------------------------------<BR>&nbsp;<strong>&nbsp;&nbsp; ~CXTPFrameWndBase() <FONT color=#009900>// !!!! Not virtual ???</FONT><BR></strong>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Could you please check it and tell us if it is a bug ?</DIV><DIV>&nbsp;</DIV><DIV>Thank you in advance,</DIV><DIV>Regards,</DIV>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 09:18:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5676&amp;PID=17889&amp;title=you-declared-a-destructor-as-nonvirtual#17889</guid>
  </item> 
 </channel>
</rss>