Logged in as Guest   Sun, Aug. 01st, 8:06 AM.      
Visitor Map
Recent Entries:
My Dev Setup Lately
Three Ways To Randomize on the iPhone
How to Remove .svn Directories On a Mac
How To Detect The iPhone Simulator
iPhoneMom Likes Doodle Games!
Updates To the Doodle Games Line
Three Jacks Now Tweets
Second iPhone App Submitted For Approval!
Pinch Media Analytics for iPhone
New iPhone Game Coming Soon!

Archive:
January - 2010
November - 2009
October - 2009
September - 2009
August - 2009
July - 2009
June - 2009
April - 2009
March - 2009
January - 2009
May - 2008
April - 2008
March - 2008
October - 2007
August - 2007
July - 2007
June - 2007
May - 2007
April - 2007
December - 2006
November - 2006
September - 2006
August - 2006
July - 2006
March - 2006
February - 2006
January - 2006
December - 2005
November - 2005
October - 2005
September - 2005
August - 2005
July - 2005
June - 2005
May - 2005
April - 2005
February - 2005
January - 2005
December - 2004
November - 2004
October - 2004
September - 2004
August - 2004
July - 2004
June - 2004
May - 2004
April - 2004
March - 2004

Clearing the DB Cache on the T5
I just spotted this on the Palm Developer forums and figured I'd post about it quickly before I leave for the Dev Con.

Apparently, the developer of McFile has found a "backdoor" method to flush the DB Cache on the T5. I have written previously about the DB Cache, and about how there is no exposed method to clear it. However, this fellow has discovered a way around that limitation. Here is the quote from the Developer Forum:
   "Clearing DBCache of TungstenT5 is carrying out by     
    broadcasting a Notification SysNotifyBroadcastDeferred) 
    HotSync Start/Finish (sysNotifySyncStartEvent and 
    sysNotifySyncFinishEvent)."
In short, he has discovered that after a hotsync, the DB Cache gets flushed. So, he has written a small routine to broadcast the hotsync start/finish events. Very clever!
For those of you looking for code, your function would look something like this:
void FlushDBCache()
{
    SysNotifyParamType notifyParams;
    notifyParams.notifyType = sysNotifySyncStartEvent;
    notifyParams.broadcaster = sysFileCSystem;
    notifyParams.notifyDetailsP = NULL;
    notifyParams.userDataP = NULL;
    notifyParams.handled = false;

    SysNotifyBroadcastDeferred(¬ifyParams, 0);

    notifyParams.notifyType = sysNotifySyncFinishEvent;
    notifyParams.handled = false;
    SysNotifyBroadcastDeferred(¬ifyParams, 0);
}

Now, I don't know if this works on other devices like the unpatched Treo 650, but it does appear to work well on the T5. YMMV.

Disclaimer:
As always, this code is provided free of charge, but if you find it helpful, I'd love to hear about it!

-Jon
Submitted by bosshogg on Monday the 23rd of May 2005, at 10:28 am