Just the other night, I was reading "Dune: House Atreides". In it, young Leto is
told by his father the Duke "When faced with a set of problems, solve the ones
that you can first. Then reassess the those that remain". Or something like
that.

With the problems (leaks) that you have, there's one that is easily identifiable
and fixable. So solve that one first and see what happens with the other leaks.
The case I'm talking about is the fifth block on the list.  This is identified
as a form. I'm assuming that it's your form. So close it before you quit your
application (I think the solution oft-recommended on this e-mail list is to call
FrmCloseAllForms).

After doing that, see if there are any more leaks left. If so, then use the
debugger to examine their contents. You might recognize them and find out where
they were created and leaked.

-- Keith






CS <[EMAIL PROTECTED]> on 03/15/2000 06:04:32 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  CS <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  Please help me with my memory leaks





Help! <grin>  I've been working on an application for the Palm using
POSE.  The application is running well in general, but is reporting
memory leaks when switching back to the launcher.  I've spent a lot of
time looking for the leaks, but I can't seem to find anything in my code
that is causing this problem.  I'm wondering if anyone on the list can
offer any advice.  The heap dump from PalmDebugger is below and any help
in interpreting its output would be appreciated.  The specifics of my
configuration are:

- POSE 3.0a5
- PRC-Tools 2.0
- Emulating Palm V
- OS 3.3 ROM with debug
- POSE is reporting that the owner ID is #2

Thanks in advance to anyone that has thoughts...
Craig

hd 0
Displaying Heap ID: 0000, mapped to 000015B0, first free: 00002824
                             req    act   lck resType/  #resID/
 start    MemHandle localID  size   size  cnt own flags type  index attr
ctg  uniqueID name
--------------------------------------------------------------------------------------------

-000018E8 000015C0 000015C1 000022 00002A  #0  #0    fM Alarm Table
-00001912 000015C4 000015C5 000112 00011A  #0  #0    fM Notify Manager
Globals (SysNotifyGlobalsType)
-00001A2C 000015C8 000015C9 000456 00045E  #0  #0    fM
-00001E8A 000015CC 000015CD 00000C 000014  #0  #0    fM DataMgr Protect
List (DmProtectEntryPtr*)
*00001E9E 000015D0 000015D1 000396 00039E  #1  #2    fM Form "7:35 pm"

...SNIP...
--------------------------------------------------------------------------------------------

Heap Summary:
  flags:              4000
  size:               01EA50
  numHandles:         #200
  Free Chunks:        #16     (015E60 bytes)
  Movable Chunks:     #6      (000F3C bytes)
  Non-Movable Chunks: #58     (007980 bytes)
  Owner  0:           0073A6 bytes
  Owner  2:           001516 bytes

  Unlabeled System Chunks: #11





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to