I'm using VFSFileDBInfo() to get prc/pdb info about files on an external card.  Here's 
the call:

err = VFSFileDBInfo( fileRefP, dbName, &attributes, &version, &crDate, &modDate, 
&bckUpDate, &modNum, 0, 0, &type, &creator, &numRecords );
if( err == errNone )
   {
   // do my stuff here
   }

But, this API causes the following error with some files:

"SystemCompatibility.c, Line:642, Null handle"

It looks like you get this error if you call VFSFileDBInfo() on a file that is not a 
.prc or .pdb file. (it would be nice if it returned an error instead).

My problem is that even if I put in a check to make sure that the filename ends in 
.prc or .pdb, I still get the error on some files.


Is there any way to check a file to make sure that VFSFileDBInfo() won't crash the OS 
when you call it?

Also, does anyone know what line 642 of SystemCompatibility.c does?

Thanks!
-Tom Bulatewicz

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to