Backup PIM.VOL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, in my application i need to create a backup of pim.vol but i have a
problem with "Appointemens Database".

for all database in pim.vol i don't have problem, i open original Pim.vol
and create a new Pim_Backup.vol so i open all database in Pim.vol with
CeOpenDatabaseInSession, get all information with CeGetDBInformationByHandle
and create a copy in my Pim_Backup.vol with CeCrateDataBaseWithProps.
I read all record...for all DB in Pim.vol and write into same DB in
Pim_Backup.vol...and this work fine....for all DB in pim.vol...but not for
"Appointments Database".
When i write records with CeWriteRecordProps in Pim_Backup.vol i receive
this error "ERROR_ACCESS_DENIED".

Can you help me?
 
Is there any chance your device is syncing with activesync at the time or
are you in the process of editing an item on the device?

Peter
 
Also have you read the notes from CeWriteRecordProps in the SDK
documentation. Make sure you are not writing null to a DB_PROP_NOTNULL field

Peter
 
Ahhh.....yes....i lanuch my application from Visual Studio 2005 debugger
.....and pocket pc is connected with activeSync....but my activeSync is not
configured for synchronize with outlook.

I need to stop activeSync?
 
On second thoughts I don't think this is the problem since you've indicated
that it fails on CeWriteRecordProps in the backup database. See my other
post for some documented issues.

Peter
 
Mhh..is not activeSync.....probably im writing a null property in a
DB_PROP_NOTNULL field in Pim_backup.vol....so how i cant resolve this? I can
change the property DB_PROP_NOTNULL in my Pim_Backup.vol?
Thanks.
 
Yes, it fails on CeWriteRecordProps...when i write into the backup
database,but fails only when i write "Appointements Database" records. With
the same code...i can correctly backup all database from cemail.vol, and all
(except "Appointements Database") from pim.vol.
 
Back
Top