<?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 : Red Background</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Red Background]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 29 May 2026 17:42:15 +0000</pubDate>
  <lastBuildDate>Thu, 20 Aug 2009 04:56:11 +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=14975</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[Red Background : Hi,  The problem has started...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52232&amp;title=red-background#52232</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 20 August 2009 at 4:56am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>The problem has started re-occuring. I have also been experiencing crashes. Over and over and over the app crashes. Windows is whinging about being unable to write to memory. </DIV><DIV>&nbsp;</DIV><DIV>The problem started to appear when a user moved a date from one slot to another. Then started to move lots of events around in a meaningless fashion. I eventually tracked the problem down to the PrePopulate code. I had a DoEvents statement in the For Each loop. By taking that out the Red background has gone away and the crashes have stopped. </DIV><DIV>&nbsp;</DIV><DIV>Interesting this as I thought that the DoEvents statement was helping to keep the process from slowing down the application redrawing.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Thu, 20 Aug 2009 04:56:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52232&amp;title=red-background#52232</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : I also expectinig your reaction...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52137&amp;title=red-background#52137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 18 August 2009 at 12:39pm<br /><br />I also expectinig your reaction on - <a href="http://forum.codejock.com/forum_posts.asp?TID=14974&amp;PID=52063#52063" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=14974&amp;PID=52063#52063</A>&nbsp;please]]>
   </description>
   <pubDate>Tue, 18 Aug 2009 12:39:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52137&amp;title=red-background#52137</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : Great minds... I am just testing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52136&amp;title=red-background#52136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 18 August 2009 at 12:34pm<br /><br />Great minds... I am just testing that. Previously the clients only change very few records on each edit. However, when they run the clean up process this may be slowing things down. I'll be sure to let you know how I get on. <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>&nbsp;</DIV><DIV>UPDATED</DIV><DIV>&nbsp;</DIV><DIV>Yes that does seem to have remedied the problem. Taking the control updates out of the loop has worked. Similarly I have taken the clearcache out too.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Tue, 18 Aug 2009 12:34:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52136&amp;title=red-background#52136</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : Maybe if youmake this call out...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52135&amp;title=red-background#52135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 18 August 2009 at 12:32pm<br /><br />Maybe if you&nbsp;make this call out of the loop-&nbsp;all will works faster?&nbsp;<DIV>&nbsp;&nbsp;&nbsp;wndDatePicker.RedrawControl<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.AttachToCalendar CalendarControl</DIV>]]>
   </description>
   <pubDate>Tue, 18 Aug 2009 12:32:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52135&amp;title=red-background#52135</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background :   Hi,  Works for me.... I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52114&amp;title=red-background#52114</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 18 August 2009 at 7:09am<br /><br /><DIV><DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Works for me.... I've colourised a few bits to make it clearer.. does that help?</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>rst.open</FONT> <FONT color=#990000>QueryString</FONT>, <FONT color=#0000ff>Connection</FONT>, <FONT color=#ff0000>adOpenForwardOnly, adLockOptimistic </FONT>' <FONT color=#009900>open recordset </FONT></DIV><DIV>&nbsp;</DIV><DIV>If Not <FONT color=#0000cc>rst.EOF </FONT>Then ' <FONT color=#006600>ok something was returned from recordset cos we aren't at the end of the recordset</FONT></DIV><DIV><BR><FONT color=#0000cc>rst.MoveFirst</FONT></DIV><DIV><FONT color=#000099>&nbsp;Do</FONT></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;CalendarControl.DataProvider.ClearCache<BR>&nbsp;&nbsp;CalendarControl.DataProvider.RetrieveDayEvents Format(rst.Fields(1), "dd/mm/yyyy") <FONT color=#006600>' retrieve event from the recordset and update calendar</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;EditedID = rst.Fields(0) ' <FONT color=#006600>pass into variable id number of edited event as this is a unique number</FONT></DIV><DIV><FONT color=#006600><BR></FONT>&nbsp;&nbsp;&nbsp;Me.CalendarControl.Populate<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.RedrawControl<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.AttachToCalendar CalendarControl</DIV><DIV><BR>&nbsp;&nbsp;&nbsp;rst.MoveNext ' <FONT color=#006600>retrieve next row of recordset</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;<FONT color=#000099>Loop Until</FONT> <FONT color=#000099>rst.EOF</FONT></DIV><DIV>End If</DIV></BLOCKQUOTE><DIV>rst.Close</DIV><DIV>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 18 Aug 2009 07:09:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52114&amp;title=red-background#52114</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : You right - VB ObjectBrowser show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52094&amp;title=red-background#52094</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 17 August 2009 at 8:58pm<br /><br />You right - VB ObjectBrowser show in this case long (!?) <DIV>so I changed:</DIV><DIV>&nbsp;dispinterface CalendarDayView<BR>&nbsp;{<BR>&nbsp;properties:<BR>&nbsp;&nbsp;&#091;id(23), helpcontext(4622)&#093; boolean EcoMode;<BR></DIV><DIV>&nbsp;&nbsp;&#091;id(25), helpcontext(4637)&#093; boolean DraftMode;<BR>&nbsp;&nbsp;&#091;id(26), helpcontext(4638)&#093; boolean RepeatHeaderMode;<BR>&nbsp;&nbsp;&#091;id(27), helpcontext(4639)&#093; boolean DF_Mode;<BR>&nbsp;&nbsp;&#091;id(28), helpcontext(4640)&#093; boolean EcoAllDayMode;</DIV><DIV>&nbsp;</DIV><DIV>and now VB ObjectBrowser show as Boolean - everybody happy</DIV><DIV>try <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/CalendarC&#111;ntrolUpdated.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/CalendarControlUpdated.rar</A>&nbsp;please</DIV><DIV><BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 Aug 2009 20:58:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52094&amp;title=red-background#52094</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : dispinterface CalendarDayView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52092&amp;title=red-background#52092</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 17 August 2009 at 8:29pm<br /><br /><DIV>dispinterface CalendarDayView<BR>&nbsp;&nbsp;&#091;id(23), helpcontext(4622)&#093; BOOL EcoMode;<BR>&nbsp;DISP_PROPERTY_ID(CXTPCalendarDayView, "EcoMode", 23, m_bEcoMode, VT_BOOL)<BR></DIV><DIV>btw - I don't understand this code</DIV><DIV><DIV>If Not rst.EOF Then<BR>rst.MoveFirst</DIV><DIV>&nbsp;Do</DIV><DIV>&nbsp;&nbsp;CalendarControl.DataProvider.ClearCache<BR>&nbsp;&nbsp;CalendarControl.DataProvider.RetrieveDayEvents Format(rst.Fields(1), "dd/mm/yyyy")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;EditedID = rst.Fields(0)<BR>&nbsp;&nbsp;&nbsp;Me.CalendarControl.Populate<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.RedrawControl<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.AttachToCalendar CalendarControl<BR>&nbsp;&nbsp;&nbsp;rst.MoveNext</DIV><DIV>&nbsp;Loop Until rst.EOF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>Looks like your only data will be taken in the end of loop - others will be lost.</DIV><DIV>Am I right?</DIV><DIV><BR>End If</DIV><DIV>rst.Close</DIV></DIV>]]>
   </description>
   <pubDate>Mon, 17 Aug 2009 20:29:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52092&amp;title=red-background#52092</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : Hi  Version 13.1... I am using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52056&amp;title=red-background#52056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 17 August 2009 at 4:34am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>Version 13.1... I am using ecomode ...&nbsp;I note that this property is a long but used with a bool ??? </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I think I have spotted the problem but I don't know how to fix it!!!</DIV><DIV>&nbsp;</DIV><DIV>My users have a screen which allows them to move forward events en masse that are in the past but are not complete. When they do this other user's application detect that an event has changed by means of a timer polling the database every 5000 millisecs.&nbsp; All edits are placed into separate table for history reasons. </DIV><DIV>&nbsp;</DIV><DIV>When the tidy up process is run the users see a massive red area in the calendar.</DIV><DIV>&nbsp;</DIV><DIV>So:</DIV><DIV>&nbsp;</DIV><DIV><BR>On Local Error Resume Next</DIV><DIV>Dim rst As ADODB.Recordset<BR>Dim IDQuery As String</DIV><DIV>If ModalFormsRunningCounter &gt; 0 Then Exit Sub</DIV><DIV>Timer1.Enabled = False</DIV><DIV>Set rst = New ADODB.Recordset</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>IDQuery = "SELECT ID, startdatetime, pcname , actiontype&nbsp; FROM EditedEvents where&nbsp; (id &gt; " &amp; EditedID &amp; ") order by 1 asc "</DIV><DIV>rst.Open IDQuery, conn, adOpenForwardOnly, adLockOptimistic</DIV><DIV>If Not rst.EOF Then<BR>rst.MoveFirst</DIV><DIV>&nbsp;Do</DIV><DIV>&nbsp;&nbsp;CalendarControl.DataProvider.ClearCache<BR>&nbsp;&nbsp;CalendarControl.DataProvider.RetrieveDayEvents Format(rst.Fields(1), "dd/mm/yyyy")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;EditedID = rst.Fields(0)<BR>&nbsp;&nbsp;&nbsp;Me.CalendarControl.Populate<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.RedrawControl<BR>&nbsp;&nbsp;&nbsp;wndDatePicker.AttachToCalendar CalendarControl<BR>&nbsp;&nbsp;&nbsp;rst.MoveNext</DIV><DIV>&nbsp;Loop Until rst.EOF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV><BR>End If</DIV><DIV>rst.Close</DIV><DIV>Timer1.Enabled = True</DIV><DIV>&nbsp;</DIV><DIV>Basically this piece of code seems to be the cuplrit. Any ideas I have fiddled with it but it either loses it functionality or I make it worse?</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Mon, 17 Aug 2009 04:34:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52056&amp;title=red-background#52056</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : Because you use obsolete version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52019&amp;title=red-background#52019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 15 August 2009 at 2:20am<br /><br />Because you use obsolete version or recent version without proper flag set - <DIV>&nbsp;</DIV><DIV>CalendarControl.DayView.EcoMode = True</DIV><DIV><FONT size=2><P>- in MFC - BOOL <FONT size=2>CXTPCalendarDayView::</FONT>m_bEcoMode;</P><P></FONT><FONT color=#008000 size=2>//flag to use on screen drawing instead of memory bitmap manipulation</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//(which restricted by 64K - sometimes it is not enough fo very many schedules case -</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//and use too much memory on low-end PC)</P></FONT></DIV>]]>
   </description>
   <pubDate>Sat, 15 Aug 2009 02:20:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=52019&amp;title=red-background#52019</guid>
  </item> 
  <item>
   <title><![CDATA[Red Background : Why does my calendar show a blank...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=51987&amp;title=red-background#51987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 14975<br /><strong>Posted:</strong> 14 August 2009 at 10:10am<br /><br />Why does my calendar show a blank red background sometimes when I refresh. I cannot find any setting where Red or even an RGB value has been applied that would do this.<DIV>&nbsp;</DIV><DIV>Regards to all,</DIV>]]>
   </description>
   <pubDate>Fri, 14 Aug 2009 10:10:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14975&amp;PID=51987&amp;title=red-background#51987</guid>
  </item> 
 </channel>
</rss>