I see two problems with your code:

1. You're not allocating space for the socket, just for the pointer to it.
Either use MemPtrNew, or allocate the socket rather than a pointer to it on
the stack.

2. Your call to ExgDisconnect isn't conditional on ExgPut succeeding.

Generally, you don't want to use the Exchange Manager to send such small
amounts of data, but perhaps it's appropriate in your application.

Please post future communications-related questions to comm-dev-forum.
Thanks!
--
Danny @ Palm

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

Reply via email to