Hi,

I'm experiencing some problems with databases in a Tungsten T5 device. Our 
application uses about 20 databases that are quite big. All of them are opened 
at the start of the application, and sorted using DmInsertingSort (the data 
also needs to be resorted during the run). When sorting them, the application 
freezes efter a few databases and the only way to get out of it, is to reset 
the handheld. When changing the order of which database to sort first, the 
problem arises at another database. When checking the DB Cache memory between 
sorting the databases, it shows that DB Cache is getting full. And when trying 
to sort one of the largest database at that state, the device is unable to 
purge the cache.

So my question is: Is there any resolution to this problem? 

Some more fact:

- I've installed the Tungsten T5 Update v1.1 
- It works perfect with Tungsten T3, E and other devices that don't use NVFS.
- I've also tried using the code below (FlushDBCache), trying to purge the 
cache at various points in the code (no diffence what so ever).
- Using VFS functions are no option since I need to sort the databases.

void FlushDBCache()
{
    SysNotifyParamType notifyParams;
    notifyParams.notifyType = sysNotifySyncStartEvent;
    notifyParams.broadcaster = sysFileCSystem;
    notifyParams.notifyDetailsP = NULL;
    notifyParams.userDataP = NULL;
    notifyParams.handled = false;
    SysNotifyBroadcastDeferred(&notifyParams,0);
  
    notifyParams.notifyType = sysNotifySyncFinishEvent;
    notifyParams.handled = false;
    SysNotifyBroadcastDeferred(&notifyParams,0);
}

Regards
/Mikael Nilsson, Erisma Technologies
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to