<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Clear the cache - when?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Clear the cache - when?</description>
  <pubDate>Sat, 11 Apr 2026 08:27:56 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 16:30:24 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=225</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Clear the cache - when? : You have to be very careful about...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=225&amp;PID=500#500</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 225<br /><strong>Posted:</strong> 12-Jul-2007 at 4:30pm<br /><br /><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You have to be very careful about clearing the cache of the PersistenceManager.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>If you don’t do it correctly, you can easily encounter mysterious crashes.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The important thing to know is what pieces of software hold references to the entities in the cache.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>For example, in our UI software, most BindingSources are composed of EntityLists which hold references to entities in the cache.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>If you clear the cache, the BindingManager or the Grid will try to traverse the EntityList and will crash due to a null reference.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>You can run into similar problems with Event Handlers and Property Descriptors.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The same thing will happen if you use some other vendor’s UI software.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>This software will initially be able to reference the objects in the cache, but before you can clear the cache, you need to be sure that there are no longer any references to the objects in the cache.<o:p></o:p></SPAN></P></SPAN>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:30:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=225&amp;PID=500#500</guid>
  </item> 
  <item>
   <title>Clear the cache - when? : I would like to ask you something...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=225&amp;PID=499#499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 225<br /><strong>Posted:</strong> 12-Jul-2007 at 4:29pm<br /><br /><P =Ms&#111;normal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I would like to ask you something about clearing the cache of the PersistenceManager.</SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In our application, we are using only one PersistenceManager but we want to identify a good moment in time when we should clear its cache.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The database used by our application is updated also by a different application (developed without IdeaBlade) and that’s why </SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">we need to be really sensitive to the changes appeared on our objects after they are loaded in the cache.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Could you help us to design a good approach for this problem?</SPAN></FONT></P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:29:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=225&amp;PID=499#499</guid>
  </item> 
 </channel>
</rss>