My application uses the exchange manager to transfer text

files to the MemoPad application. On Cobalt it causes the

simulator to crash (after I have tapped the OK button to

accept the data into MemoPad). I have reduced the transfer

code down to a bare miniumum to see what is wrong, but it

still fails all the time:

ExgSocketType exgSocket;

MemSet(&exgSocket, sizeof(exgSocket), 0);

exgSocket.noStatus = 1;

exgSocket.noGoTo = 1;

exgSocket.localMode = 1;

exgSocket.description = "Testing";

exgSocket.target = sysFileCMemo;

exgSocket.name = "Memos.txt";

Char *textBuf= "** Testing **";

Err error = ExgPut(&exgSocket);

if (error == 0)

{

    ExgSend(&exgSocket, textBuf, StrLen(textBuf) + 1, &error);

    ExgDisconnect(&exgSocket, error);

}

This works reliably on everything except the Cobalt

simulator. Any ideas?



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

Reply via email to