on late nvfs devices it is a very very bad idea to do ANYTHING in sysAppLaunchCmdSystemReset handler. Instead in there all you should do is subscribe to the sysNotifyResetFinishedEvent notification, and only in there are you ok to do anything else
---- Best Regards, Dmitry Grinberg (847) 226 9295 On Sun, May 24, 2009 at 12:54 PM, codemaker <[email protected]> wrote: > SD Card disappears on Treo680 and Treo650 when opening a db in the > sysAppLaunchCmdSystemReset part of my program > > I have verified that not global variables are used, and the db exist before > reset. > The program works fine on Centro and PalmTX > > This is what it works in Centro and PalmTX > dbID = DmFindDatabase(cardNo, appDBName); > if (dbID==0) return 1; > dbP = DmOpenDatabase(cardNo, dbID, dmModeReadOnly); > ... > > Any idea why this happen? > > > The followings give "bad" results in any device > > // RESET LOOP > if (errNone != DmGetNextDatabaseByTypeCreator(true, &searchState, > appDBType,appFileCreator, true, &cardNo, &dbID)) > { > .... > } > > NOT GOOD EITHER > dbP = DmOpenDatabaseByTypeCreator(appDBType, appFileCreator, dmModeReadOnly); > > > > > > > > > -- > For information on using the ACCESS Developer Forums, or to unsubscribe, > please see http://www.access-company.com/developers/forums/ > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
