Jeff Valore wrote:
> my program doesn't reference any [global variables] and it
> still dies on a reset.
Can you specify the manner of death? (bus error, assertion, etc.)
> char *dbNames[] = {/*bunch of strings*/};
Double check that those strings are not getting placed in the static
data area. They need to be PC-relative. I prefer to view the generated
assembly code (via menu in CodeWarrior) to verify this.
> Hope someone out there can tell me what here I can't do!
One API you can't safely call is DmDeleteDatabase. This is because your
reset code is called from within a DmGetNextDatabaseByTypeCreator
iteration loop, so deleting a database pulls the rug out from under its
feet and can crash it. (The exact symptom varies on different Palm OS
versions.)
-slj-