> -----Original Message-----
> From: Dave Mottorn
> Sent: Sunday, August 03, 2003 5:19 AM
<SNIP>
> err1 = ExgPut(&exgSocket);
> if (err1 == 0) {
> if (id)
> err2 = ExgDBWrite(
> WriteProc,
> &exgSocket,
> f,
> id,
> cardNumber);
> err3 = ExgDisconnect(&exgSocket,err3);
> }
The documentation for ExgPut states that you must *always* follow it
with an ExgDisconnect(). You are doing this in the case of (err1 == 0),
however if (err1 != 0), you fail to call ExgDisconnect(). This is one
thing you want to fix immediately.
Have you tried using the filename, with extension?
exgSocket.name = "AddressBook.PDB"
There's also the following recipe to grok:
http://www.palmos.com/dev/support/docs/recipes/recipe_exg_mgr_send_db.ht
ml
Gotta run -- if none of this works, let's see what all the non-NULL
values in your exgSocket are.
-Jeff Ishaq
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/