<?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 : 40 bytes memory leak</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : 40 bytes memory leak]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 21:19:52 +0000</pubDate>
  <lastBuildDate>Tue, 04 Nov 2008 06:15:07 +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=12502</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[40 bytes memory leak : It worked perfect, no leaks, working...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42615&amp;title=40-bytes-memory-leak#42615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4253">jortola</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 04 November 2008 at 6:15am<br /><br />It worked perfect, no leaks, working correct. Thanks for your help oleg. Great job. <DIV>&nbsp;</DIV><DIV>Mmm.. I've just realized that I'm in AX forums, not MFC. srry.</DIV>]]>
   </description>
   <pubDate>Tue, 04 Nov 2008 06:15:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42615&amp;title=40-bytes-memory-leak#42615</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Hi,  Problem that CXTPCalendarControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42613&amp;title=40-bytes-memory-leak#42613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 04 November 2008 at 5:49am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Problem that CXTPCalendarControl has own sink and think its main reason.</DIV><DIV>&nbsp;</DIV><DIV>Try change it to</DIV><DIV>&nbsp;</DIV><DIV><P><strong>class CCalendar</strong></P><DIV>{<BR>public:<BR>&nbsp;&nbsp;bool StartSchedule();<BR>&nbsp;&nbsp;&nbsp; ...<BR>protected:<BR>&nbsp;DECLARE_XTP_SINK(CCalendar, m_Sink);<BR>&nbsp;void OnReminders(XTP_NOTIFY_CODE Event, WPARAM wParam , LPARAM lParam);<BR>&nbsp;...</DIV><DIV><strong>CXTPCalendarControl m_wndCalendar</strong>&nbsp;<BR><BR>};</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 04 Nov 2008 05:49:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42613&amp;title=40-bytes-memory-leak#42613</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Sorry for the long sheet ofcode.   //File...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42610&amp;title=40-bytes-memory-leak#42610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4253">jortola</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 04 November 2008 at 2:17am<br /><br /><DIV>Sorry for the long sheet of&nbsp;code.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>//File CCalendar.h</DIV><P>class CCalendar : public CXTPCalendarControl <BR>{<BR>public:<BR>&nbsp;CCalendar();<BR>&nbsp;virtual ~CCalendar();<BR>&nbsp;DECLARE_DYNCREATE(CCalendar);<BR>&nbsp;bool StartSchedule();<BR>&nbsp;&nbsp;&nbsp; ...<BR>protected:<BR>&nbsp;DECLARE_XTP_SINK(CCalendar, m_Sink);<BR>&nbsp;void OnReminders(XTP_NOTIFY_CODE Event, WPARAM wParam , LPARAM lParam);<BR>&nbsp;...<BR>};</P><P>//File CCalendar.cpp<BR>IMPLEMENT_DYNCREATE(CCalendar, CXTPCalendarControlView)</P><P>void CCalendar::OnReminders(XTP_NOTIFY_CODE Event, WPARAM wParam , LPARAM lParam)<BR>{<BR>&nbsp;UNREFERENCED_PARAMETER(lParam);</P><P>&nbsp;int eAction = (int)wParam;</P><P>&nbsp;switch (eAction)<BR>&nbsp;{<BR>&nbsp;case xtpCalendarRemindersFire:<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CXTPCalendarRemindersManager *calRemindersManager = GetRemindersManager();<BR>&nbsp;&nbsp;&nbsp;CXTPCalendarReminders calRemindersL;<BR>&nbsp;&nbsp;&nbsp;CXTPCalendarReminder *pcalReminder;<BR>&nbsp;&nbsp;&nbsp;CXTPCalendarEventPtr cEvent;<BR>&nbsp;&nbsp;&nbsp;XTP_CALENDAR_RECURRENCE_OPTIONS cOptions;</P><P>&nbsp;&nbsp;&nbsp;calRemindersManager-&gt;GetActiveReminders(calRemindersL);</P><P>&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; calRemindersL.GetCount(); i++)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pcalReminder = calRemindersL.GetAt(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;cEvent = pcalReminder-&gt;GetEvent();<BR>&nbsp;&nbsp;&nbsp;&nbsp;//get some event atributes<BR>&nbsp;&nbsp;&nbsp;&nbsp;pcalReminder-&gt;Dismiss();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;::SendMessage(parentInstance, WM_CAL_SHEDULER, 0, 0);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;break;<BR>&nbsp;case xtpCalendarReminderDismissed:<BR>&nbsp;case xtpCalendarReminderDismissedAll:<BR>&nbsp;case xtpCalendarRemindersMonitoringStarted:<BR>&nbsp;case xtpCalendarRemindersMonitoringStopped:<BR>&nbsp;default:<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;}<BR>}</P><P><BR>bool CCalendar::StartSchedule()<BR>{<BR>&nbsp;CXTPCalendarData* data = GetDataProvider();<BR>&nbsp;CXTPCalendarEventsPtr cEvents = data-&gt;RetrieveDayEvents(COleDateTime::GetCurrentTime());<BR>&nbsp;CXTPCalendarEventPtr p;<BR>&nbsp;for (int i = 0; i &lt; cEvents-&gt;GetCount(); i++)<BR>&nbsp;{<BR>&nbsp;&nbsp; p = cEvents-&gt;GetAt(i, TRUE);</P><P>&nbsp;&nbsp;//get some events data<BR>&nbsp;}<BR>&nbsp;cEvents-&gt;RemoveAll();<BR>&nbsp;EnableReminders(true);<BR>&nbsp;::SendMessage(parentInstance, WM_CAL_SHEDULER, 0, 0);<BR>&nbsp;CConfig::SetCalendar(true);<BR>&nbsp;return true;<BR>}</P><P>//Main<BR>CCalendar calendar;<BR>calendar.StartSchedule();</P>]]>
   </description>
   <pubDate>Tue, 04 Nov 2008 02:17:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42610&amp;title=40-bytes-memory-leak#42610</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Hi, Can you attach sample to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42527&amp;title=40-bytes-memory-leak#42527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 31 October 2008 at 9:07am<br /><br />Hi,<DIV>Can you attach sample to show it ?</DIV>]]>
   </description>
   <pubDate>Fri, 31 Oct 2008 09:07:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42527&amp;title=40-bytes-memory-leak#42527</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Nop, but the main difference between...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42522&amp;title=40-bytes-memory-leak#42522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4253">jortola</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 31 October 2008 at 4:33am<br /><br />Nop, but the main difference between your sample and my app is that in your sample you use MDI (or SDI) and I dont embebe the calendar control in any window because I'm just using the sheduler part (OnReminders). So I derive a class from your&nbsp;<FONT color=#030003 size=2><FONT color=#030003 size=2>CXTPCalendarControl class and just declare a object of this class.</FONT></FONT>]]>
   </description>
   <pubDate>Fri, 31 Oct 2008 04:33:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42522&amp;title=40-bytes-memory-leak#42522</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Last question - do you see same...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42476&amp;title=40-bytes-memory-leak#42476</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 29 October 2008 at 4:08pm<br /><br />Last question -&nbsp; do you see same after run our sample ?]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 16:08:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42476&amp;title=40-bytes-memory-leak#42476</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Yes, the IDE shows and &amp;#039;unknown&amp;#039;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42460&amp;title=40-bytes-memory-leak#42460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4253">jortola</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 29 October 2008 at 10:24am<br /><br /><P>Yes, the IDE shows and 'unknown' leak, and the memory profiler indicates that that leak is produced from calendar.</P>]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 10:24:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42460&amp;title=40-bytes-memory-leak#42460</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : I mean does IDE show leaks ? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42287&amp;title=40-bytes-memory-leak#42287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 24 October 2008 at 1:48am<br /><br />I mean does IDE show leaks ?]]>
   </description>
   <pubDate>Fri, 24 Oct 2008 01:48:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42287&amp;title=40-bytes-memory-leak#42287</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : VS8 + SP1 (2005) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42274&amp;title=40-bytes-memory-leak#42274</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4253">jortola</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 23 October 2008 at 10:35am<br /><br /><P>VS8 + SP1 (2005)</P>]]>
   </description>
   <pubDate>Thu, 23 Oct 2008 10:35:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42274&amp;title=40-bytes-memory-leak#42274</guid>
  </item> 
  <item>
   <title><![CDATA[40 bytes memory leak : Hi, What Visual Studio IDE show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42260&amp;title=40-bytes-memory-leak#42260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12502<br /><strong>Posted:</strong> 23 October 2008 at 5:41am<br /><br />Hi,<DIV>What Visual Studio IDE show ?</DIV>]]>
   </description>
   <pubDate>Thu, 23 Oct 2008 05:41:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12502&amp;PID=42260&amp;title=40-bytes-memory-leak#42260</guid>
  </item> 
 </channel>
</rss>