Paul Gargan wrote:
> Hi,
>
> I'm trying to implement rudimentary support for beaming using the Exchange
> Manager. In my PilotMain I evaluate the launch command and act accordingly.
>
> When I catch sysAppLaunchCmdExgReceiveData I need to open my database to
> store the incoming data. Chances are it's open already - at the moment I'm
> testing using loopback so it's guaranteed to be open already.
>
> But I need to get a reference to it, so I call DmOpenDatabaseByTypeCreator,
> passing it dmModeReadWrite as the mode to open it in.
>
> For some reason it's failing - returning a NULL DmOpenRef. Calling
> DmGetLastErr reports 0x216, which seems to correspond to
> dmErrAlreadyOpenForWrites (dmErrorClass | 22). The same function is used to
> open the database each time (ie during "normal" execution and when handling
> Exchange codes...
Essentially you must determine if you launch code indicates that the app is already
present and globals are ok to use. If globals are present then use them to obtain
the DmOpenRef already in use.
Good luck.
--
Christopher Hunt
Class Action Pty. Ltd.
Are you a time zone traveler that owns a Palm(tm) connected organizer?
Check out http://www.classactionpl.com/TimeTraveler/index.htm