Bob Ebert wrote:
> I can't think of any reason why DmDeleteDatabase would crash during a 
> reset launch code loop.  Maybe you accidently tried to use some global 
> variable?  I'd love to see the stack trace for this.

One stack trace coming up:

    __Startup__            <== UIAppShell, not my app
    PilotMain
    SysBroadcastActionCode
    DmGetNextDatabaseByTypeCreator
    MemLocalIDToLockedPtr
    MemHandleLock
    PrvHandleCheck
    ErrDisplayFileLineMsg  <== "MemoryMgrNew.c, Invalid handle"

See what's going on?  My app is called for reset and calls
DmDeleteDatabase to delete its temp database.  Then my app exits
successfully back to SysBroadcastActionCode, which then tries to iterate
to the next app to call.  But the deletion has pulled the rug out from
under the iteration, so it crashes shortly after.

This behavior is sensitive to the relative ordering of my application db
and the deleted db in the iteration.  If the temp db is newer than the
app (the usual case) then it crashes, otherwise it succeeds.

Final clue: this crash happens on 3.0.  It runs correctly on 3.1.

-slj-

Reply via email to