Complete details of the problem, should someone care to investigate.
We have a Treo 650, Palm OS 5.4.0, Phone Software: Treo6XX-/78/B01.00-I, Phone
Hardware: C2, with an SD card labelled "FSD256SIM, M423F4JM0002", CardInfo
shows 140.9MB, "TWTTI".
The volInfo.fsType equals 'vfat'.
There are 3 files and 5 directories on the card before it is written to, and 6
files afterwards.
This code:
char *sz_filenames[4] =
{
"abcdef", "abcdefg", "abcdefgh", "abcdefghi"
};
for ( int i=0; i<4; i++ )
{
char sz_mess[256] = "";
UInt16 fileerr = VFSFileCreate( volRefNum, sz_filenames[i] );
StrPrintF( sz_mess, "name=%s, err=%d\n", sz_filenames[i],
fileerr );
FldInsert( field, sz_mess, StrLen(sz_mess) );
}
The first time it is run, shows:
name=abcdef,err=0
name=abcdefg,err=0
name=abcdefgh,err=0
name=abcdefghi,err=10754
Files "abcdef", "abcdefg", "abcdefgh" are created in the root directory of the
card.
File "abcdefghi" is not.
The second time it is run (when three files have been created once), shows:
name=abcdef,err=10758
name=abcdefg,err=10758
name=abcdefgh,err=10758
name=abcdefghi,err=10754
There is no problem if we write to a sub-directory.
Thank you for your attention,
M
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/