> If I beam an application using palm's default launcher,
> and the receiving device already has that application,
> the following is the normal procedure.
> ...
> however, when I beam the application by the function
> copied from the example application in the knowledge base,
> it failed to do so, just displaying.
>
> -> "Error: Database already exists (0x0219)"
It sounds like your applications has a "Beam Me" button (or menu item, etc)
that uses ExgDBWrite to beam itself, but relies on the Launcher to receive
this beam. Or is your application registering to receive the beamed
database? What version of Palm OS is running on the sending and receiving
sides? (Try several if you can.) Does the above error message appear on the
sending device or on the receiving device? I assume the latter.
If the app to be replaced on the receiving device is running, Launcher won't
be able to delete it. It should report an error something like this:
"The <Foo> application cannot be replaced because it is currently running.
Switch to another application and beam again."
You should get this message if the delete operation fails for any reason.
For example, you'll get this if the database is protected.
Have you tried beaming your app from the Launcher? Do you see the same
result?
The error message you're seeing is for dmErrAlreadyExists. This is returned
by DmCreateDatabase when it finds an existing database in RAM. So somehow
the call to DmDeleteDatabase isn't returning an error, but is leaving a
database around. Hmmm...
We should probably take this off-line.
The bug Peter mentioned (associated data getting deleted) is a side-effect
of some code to deal with canceling while receiving an overwrite. I think
it's present in 3.0 and 3.3. Maybe also 3.1. (It has a complex history.) The
work-around is to make sure you're NOT running Launcher on the receiving
device. This was discussed here back in April:
http://www.escribe.com/computing/pcpqa/index.html?by=OneThread&t=Receiving%2
0app%20via%20Beaming
--
Danny @ Palm
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/