Here is my WriteProc:

Err     WriteProc(const void *dataP, UInt32 *sizeP, void *userDataP)
{
        Err     err;

        *sizeP = ExgSend((ExgSocketPtr) userDataP, dataP, *sizeP, &err);
        return err;
}

I tried putting ExgDisconnect after every ExgPut and got the same results.
All the non-null values are initialized in the routine.  f is a character
array with the name of the file, e.g., "SM095036#0012345:.TXT".  The file
does get beamed correctly the first time.

I looked at the reference and didn't see anything I'm doing wrong.  I think
I may be declaring the description wrong though.  The recipe example has
Char *appName = ExgMgrBeamDB.prc".  I get a compile error on that.  The
files I'm beaming are ASCII text files incidentally.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jeff
Ishaq
Sent: Sunday, August 03, 2003 12:31 PM
To: Palm Developer Forum
Subject: RE: Beaming Problem


> -----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/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to