Hrms.. Rebuilding the runtime libs made this go away ;)

Now I'm totally confused.  I don't have 3000 calls to anything in the
profile anymore... 

-- 
Matt Disher
[EMAIL PROTECTED]


> From: Ben Combee <[EMAIL PROTECTED]>
> Organization: Metrowerks
> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> Date: Fri, 17 May 2002 00:15:26 -0500
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Subject: Re: Lengthy Exit Time
> 
> In article <86432@palm-dev-forum>, [EMAIL PROTECTED] says...
>> 
>> 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.
> 
> Recompile the runtime library with debugging info and Macsbug names...
> that might help you pin this down.
> 
> Is your app using expanded mode?  Are you using CodeWarrior for Palm OS
> V8.2?  I don't think there should be any longer code paths going that
> way, but I'm not too sure.  My guess would be the global destructor
> chain.
> 
> -- 
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Get help at http://palmoswerks.com/
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
> 


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

Reply via email to