"Francisca Sepulveda" <[EMAIL PROTECTED]> wrote in message
news:47454@palm-dev-forum...
> Why does the BeamBackToSender only work if the user explicitly clicks a
button?
I suspect the problem is that the IR library hasn't cleaned up yet. The IrDA
stack has shut down, but the object being delivered is still allocated. When
it's done being delivered (when you call ExgDisconnect and return from
sysAppLaunchCmdExgReceiveData), it can clean up. Only then can you call
ExgPut to beam back.
You might try arranging for a goto launch, if you're not already, and doing
the "beam back" when you get that launch code. That still may not work
though; the IR library may need to process some events. If this is the case,
you can use an alarm or similar mechanism to wait for a second or so.
I've had bad luck doing what you're attempting. Even if you get it working,
there will be a lot of flickering dialogs. If you want to do full two-way
communication, I recommend using the IR library rather than the Exchange
Manager. This is much harder though.
Good luck!
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/