Hi,
I have a snippet of code to get the modification number of a database that
I've saved to the treo's nvfs volume
error=VFSFileOpen
(volRefNum,PREFS_BACKUP,vfsModeRead,&fileRef);
if (!error)
{
VFSFileDBInfo
(fileRef,NULL,NULL,NULL,&dateNum,NULL,NULL,&modNum,NULL,NULL,NULL,NULL,NULL);
VFSFileClose(fileRef);
AppDoubleToStr(disp,modNum,0);
AppCopyTextToField(frmP,BackupBackupModField,disp,false);
}
if I put a debug point on VFSFileDBInfo then it returns the correct value.
If I clear the debug point and stop a couple of lines later, it returns 0
or 1 (for modnum).
This is the same build running in the same debug session, the only thing
changing is that I turn the breakpoint on and off in codewarrior
I have repeated this many times to be sure.
I've tried putting a SysTaskDelay before and after VFSFileDBInfo (50ticks)
Any ideas?
Thanks in advance,
Rob
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/