On Tue, Oct 10, 2000 at 11:50:07AM -0500, Kelly J Perkins wrote:
> 
> Thanks for getting back to me...
> 
> We have created an application (A) that shares a database with another
> application (B). When the receiver has Application A opened, and the sender
> tries to beam data from Application B, the receiving end launches
> Application B and tries to open the same database which is already opened by
> Application A and causes a dmErrAlreadyExists.
> 
> The sticky part is I can't get to Application B's code to tell it to look
> for an instance of Application A and use that database handle. For the
> reverse case, where App A is sending data to a receiver with App B opened, I
> call SysAppLaunch and pass the incoming data beam to Application B.

You could do FtrSet in App A and pass in the handle (remembering to
reset it to NULL upon exit), then FtrGet in App B, so it would either
use that or do the open/create.

I do something like this to pass in a "ask on received beams" flag.

> Hope that isn't too confusing...
> 
> If you have any other suggestions, I would greatly appreciate them,
> otherwise, I think we are going to handle it as a "training issue" and try
> to get users to be in Application B on both receiving and sending end when
> they want to send data. Is that considered bad "Palm" behavior?
> 
> Thanks!
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/

-- 


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