I would like to create a file on sd card, but i always get a vfsErrVolumeBadRef
error. What could be wrong?
I tried this, but i never get a "vfsErrVolumeBadRef" error:
Char* filename = "/helloworldd.txt";
for(UInt16 i=0; i<1000;i++)
{
error=VFSFileCreate(i, filename);
if(error==expErrNotOpen)
{
FrmCustomAlert(OpozoriloAlert,"expErrNotOpen",NULL,NULL);
}
if(error==vfsErrBadName)
{
FrmCustomAlert(OpozoriloAlert,"vfsErrBadName",NULL,NULL);
}
if(error==vfsErrFileAlreadyExists)
{
FrmCustomAlert(OpozoriloAlert,"vfsErrFileAlreadyExists",NULL,NULL);
}
if(error==vfsErrVolumeBadRef)
{
FrmCustomAlert(OpozoriloAlert,"vfsErrVolumeBadRef",NULL,NULL);
}
if(error==vfsErrNoFileSystem)
{
FrmCustomAlert(OpozoriloAlert,"vfsErrNoFileSystem",NULL,NULL);
}
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/