Hi everyone, a funny one (at least i think so) I am creating a database with the following code:
err = DmCreateDatabase(cardno, name, creator, type, false); if (err) return err; *created = true; *dbP = DmOpenDatabaseByTypeCreator(type, creator, mode); if (! *dbP) return DmGetLastErr(); err = DmOpenDatabaseInfo(dbP, dbID, NULL, NULL, NULL, NULL); return 0; But when the DmOpenDatabaseInfo executes I get an Invalid chunk error. Funny thing is, if i move the DmOpenDatabaseInfo to the calling function so it executes straight after the return 0, it works. Why would this be??? Rgds, george Bassili -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
