>The debugger shows that the program location is deep within
>PrvCallWithNewStack. It's either in my StartApplication() or my
>StopApplication().
PrvCallWithNewStack is a private OS function which generates a stack for
your application to use, and calls its PilotMain. Every app goes through
that routine, basically... so all you can really tell so far is that your
app has been started :-)
>If I try to delete the program from POSE after starting it, I'll get similar
>failures...
Weird. Are you doing some weird access to your code blocks, or application
database, or the like?
>It seems as though things are failing because I'm doing a good job of
>cleaning up in StopApplication()...
What do you mean by "a good job"? You mean like using a nuclear bomb to do
a good job cleaning up the kitchen? Sounds like you're either messing up
your application's resources, or corrupting the memory manager, or
something along those lines. But without seeing your code, I wouldn't be
able to say.
-David Fedor
Palm Developer Support