For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2005 > How To Create a persistent Database in object store









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How To Create a persistent Database in object store
V. Prem Krishnan

2005-01-23, 4:04 pm


Could you help me to create a persistent database in object store, As of
now I am able to create it but when device is powered off the database is
getting deleted. I am not mounting and flushing any database volumes since
it is given in smartphone SDK that mounting & flushing is not necessary for
the databases created in object store.

Thanks,
Prem.


riki

2005-01-23, 4:04 pm

V. Prem Krishnan wrote:
> Could you help me to create a persistent database in object store, As of
> now I am able to create it but when device is powered off the database is
> getting deleted. I am not mounting and flushing any database volumes since
> it is given in smartphone SDK that mounting & flushing is not necessary for
> the databases created in object store.

if you are not calling CeMountDBVol() then it defaults to createing the
databases in RAM, to fix this call CeMountDBVol() with a path on
\Storage\ (or you can emumerate though the mounted volumes using
CeEnumDBVolumes)

your shouldn't need to flush the volume.

riki

Travel important today; IRS arrives tomorrow.
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com