I posted a while back and never got a response, so I shelved my problem for
now in hopes that it would mainfest itself differently or perhaps just go
away (wishful thinking).

I now need to fix this.

Basically my App takes for ever and a day to exit and get back to the
Launcher.  All this happens POST my AppExit function, and Poser doesn't
report any memory leaks.

When I profile the app, the breakdown of time spend goes into this chain:

functions:
    partial
        partial
        MemChunkFree
        partial
        SysAppExit
        unknown $000500A2
        unknown $000507DC
            DmGet1Resource  (1661 calls)
                DmFindResource (1661 calls)
                DmGetResourceIndex  (2)
                DmNextOpenResDatabase (1661 calls)
                PrvSetLastErr   (3320 calls)
            MemHandleUnlock (2 calls)

I have the OS sources but have not been able to figure out what's happening
past SysAppExit, or what could be causing 3320 calls to PrvSetLastErr, or
what/why the OS would be looking 1661 times for a resource...

Any tips, tricks, thoughts welcome.

thx.

-MD




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to