I am getting one of the unallocated chunk messages when I am trying to use
DmSetDatabaseInfo. here is some pseudo-code to demonstrate what I am trying
to do (rename on a FileStream):
FileHand hFile = FileOpen( ... fileModeReadWrite );
if ( ! err )
{
err = FileControl( fileOpGetOpenDbRef, hFile, &refDatabase, &len );
err = DmOpenDatabaseInfo( refDatabase, &id, NULL, NULL, &card, NULL );
err = DmSetDatabaseInfo( card, id, szNewName, NULL... );
err = DmCloseDatabse( refDatabase );
err = FileClose( hFile );
}
this is based on feedback i read in this forum. however, no matter what i
do, i always get an unallocated chunk error whenever I call
DmSetDatabaseInfo.
I have tried opening the database with DmOpenDataabase.
I have tried no using DmOpenDatabaseInfo and instead getting the parameters
with other APIs.
nothing seems to make a difference. I am not getting any errors returned
from any of the calls before I call DmSetDatabaseInfo (I have more robust
error code handling in the actual code; i have simplified it here for this
discussion).
is there a step I am missing?
thanks,
steve
--
----------------------------------------------------
steve orens http://www.orens.com
[EMAIL PROTECTED]
----------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/