<?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 : Problems getting calendar to exit properl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Problems getting calendar to exit properl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 19:14:23 +0000</pubDate>
  <lastBuildDate>Tue, 04 Oct 2005 07:26: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=2991</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[Problems getting calendar to exit properl :   Thanks It worked!! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8947&amp;title=problems-getting-calendar-to-exit-properl#8947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2991<br /><strong>Posted:</strong> 04 October 2005 at 7:26am<br /><br />Thanks It worked!! <IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Tue, 04 Oct 2005 07:26:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8947&amp;title=problems-getting-calendar-to-exit-properl#8947</guid>
  </item> 
  <item>
   <title><![CDATA[Problems getting calendar to exit properl : Rolando,  It looks like an assertion...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8934&amp;title=problems-getting-calendar-to-exit-properl#8934</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2991<br /><strong>Posted:</strong> 04 October 2005 at 1:33am<br /><br />Rolando,<br /><br />It looks like an assertion could be caused because a destructor for the Calendar is called before the destructor for Controller.<br /><br />Try to Set calendar and date picker to NULL in your dialog destructor:<br /><table width="99%"><tr><td><pre class="BBcode"><br />CDlgAgenda::~CDlgAgenda<br />{<br /> &nbsp;&nbsp;&nbsp;&nbsp;m_CalendarController.SetCalendar(NUL L); <br /> &nbsp;&nbsp;&nbsp;&nbsp;m_CalendarController.SetDatePicker(N ULL);<br />}<br /></pre></td></tr></table><br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Tue, 04 Oct 2005 01:33:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8934&amp;title=problems-getting-calendar-to-exit-properl#8934</guid>
  </item> 
  <item>
   <title><![CDATA[Problems getting calendar to exit properl : More on previous message!!! I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8933&amp;title=problems-getting-calendar-to-exit-properl#8933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2991<br /><strong>Posted:</strong> 03 October 2005 at 5:30pm<br /><br /><P>More on previous message!!!</P><P>I do not know if this matters at this point but I only get the above mentioned behaviour in DEBUG mode only! <IMG src="http://forum.codejock.com/smileys/smiley11.gif" border="0"></P>]]>
   </description>
   <pubDate>Mon, 03 Oct 2005 17:30:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8933&amp;title=problems-getting-calendar-to-exit-properl#8933</guid>
  </item> 
  <item>
   <title><![CDATA[Problems getting calendar to exit properl :   Hi, I&amp;#039;ve tried everything...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8926&amp;title=problems-getting-calendar-to-exit-properl#8926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=33">RolandoE.</a><br /><strong>Subject:</strong> 2991<br /><strong>Posted:</strong> 03 October 2005 at 8:37am<br /><br /><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Hi,</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>I've tried everything I can think about. I even copied code from another proyect which uses the Calendar Control successfully and I am still having some problems with the following code. <IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0">&nbsp; The program comes up and everything runs fine. There is no code to post events or anything like this. All I am doing right now is displaying the Calendar control and linking it with the Date Picker control via the CXTPCalendartController class.</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Within CDlgAgenda::OnInitDialog()...</FONT></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#008000><FONT face="Courier New, Courier, mono" size=1>// Create Calendar Control Window<BR></FONT></FONT><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>if</FONT>  (!m_wndCalendar.Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_BOR DER, CRect(0,0,0,0), <FONT color=#0000ff>this</FONT>, 333))<BR></FONT><FONT size=1><FONT color=#0000ff>return</FONT> -1;</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" color=#008000 size=1><FONT face="Courier New, Courier, mono">// Attach Date Picker and Calendar Control to Calendar Controller<BR></FONT>// Causing error at program close!!<BR></FONT><FONT face="Courier New, Courier, mono" size=1>m_CalendarController.SetCalendar(&amp;m_wndCalendar); <BR></FONT><FONT face="Courier New, Courier, mono" size=1>m_CalendarController.SetDatePicker(&amp;m_wndDatePicker);<BR>m_wndCalendar.SwitchActiveView(xtpCalendarMonthView);</FONT></P></BLOCKQUOTE><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>The problem I am having is when the application exits I am getting an error within CCmdTarget::~CCmdTarget()!! Tracing back I get to CWnd::~CWnd(), CXTPCalendarControl::~CCalendarControl() then finally CDlgAgenda::~CDlgAgenda() (This is where the calendar control is found).</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>The weird part is that I do not have this problem if I comment out the following line:</FONT></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT size=1><FONT face="Courier New">m_CalendarController.SetCalendar(&amp;m_wndCalendar); </FONT></FONT></P></BLOCKQUOTE><P dir=ltr><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Any ideas? Do you need more information? I already tried creating the calendar control within&nbsp;OnCreate().</FONT></P><P dir=ltr><FONT size=1>Thanks for the help. <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0"></FONT></P><P dir=ltr><FONT size=1>Rolando <IMG src="http://forum.codejock.com/smileys/smiley16.gif" border="0"></FONT></P><FONT></FONT>]]>
   </description>
   <pubDate>Mon, 03 Oct 2005 08:37:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2991&amp;PID=8926&amp;title=problems-getting-calendar-to-exit-properl#8926</guid>
  </item> 
 </channel>
</rss>