Matthew Graham wrote:

> > [EMAIL PROTECTED] wrote:
> > I've been fiddling with this problem for a while: I try to beam a DB to my 
> > program on another device. I fill the socket, set the description, name,
> > target and appData, but this appData never gets through on the other side,
> > although other fields are properly filled.

> I didn't really look at your code, but is this possibly related to your 
> MemHandle freed problem?  Are you sure the app info handle is in good 
> shape and didn't accidentally get freed before you try to beam the DB?

Actually, the appData field gets zeroed before anything else is actually sent. 
Immediately after the sysAppLaunchCmdExgAskUser is received, the field is 
already empty. I also tried setting other optional socket fields like length, 
count or time just before the ExgPut; they also get zeroed upon arrival, as if 
the OS cleared anything that was not required. Only the socketRef, 
libraryRef, target, description and name remain filled. So the problem seems to 
lie between the ExgPut and the sysAppLaunchCmdExgAskUser, but my code is 
exactly like available examples. And if I never beam data, my program never 
reports this free handle problem, so I gather it only occurs later when 
handling the beamed data. Faking the expected data in appData, I'm now trying 
to fix this next step; I already added some MemHeapChecks, but no problem was 
reported on that side :(

All ideas welcome.


-- 
Luc Le Blanc

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

Reply via email to