Andy Black wrote:
> Hello All,
> I have a strange/annoying little problem. When I install my app and run it,
> it creates a data base. However, whenever I exit my app and try to install a
> newer build POSE complains that it can't install because the database is
> still open. In my App Stop routine I call DmCloseDatabase (gDataBase) then I
> call FrmCloseAllForms (). Am I doing this all wrong? Oh, another strange
> thing about it is, this only happens in POSE with the 2.0 ROM. The 3.5 ROM
> doesn't give me this error.
>
> Any thoughts?
> Thanks,
> Andy
Yes, this makes perfect sense. There's a few things going on here.
1. According to the POSE docs :), you should not be installing apps with the
launcher open. You should be switching to another app, like datebook or
something. Then drag and drop your file to POSE. I'm not exactly sure why, but
you might have noticed that your app doesn't show up in "applications" until
after you go to another app and then come back.
2. In OS 2.0, when you launch the old style launcher, your app does not exit.
Only when another app is launched does your app get closed. This is why POSE
complains about the DB still being open, because it is. Remember, your app is a
database as well, and while it's running, the system has it open.
However, if you were doing #1, you wouldn't have the problem in #2 :) It's
helpful to know what's going on though. :)
--
Brian Mathis
Direct Edge
http://www.directedge.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/