On Nov 2, 2006, at 4:10 PM, Peter Karlsson wrote:
Try LeakCheck Classes by Mark Nutter. Those have saved me a lot of
time, and you may get quite a few surprises, as I did.
[EMAIL PROTECTED]
http://www.bucktailsoftware.com/developer/
While I haven't used these exact classes, something like this is a
good place to start. I have a window that does something similar that
I can include in any project I've got a problem with that just walks
the runtime object and counts the various objects and tells me how
many of each kind there are. This can make it very easy to see what
objects are sticking.
Assuming no bugs in RB ;) the first thing to think about would be
circular references to objects. If I create 2 objects in the window,
and give them references to each other so they can talk, then just
cleaning up the reference to them in the window wont make them go
away, because they still reference each other so the reference counts
never go to zero. You need to add a close method or something that
clears those circular object references before they will be released
back to the program's memory.
If you've done all that debugging and it still leaks, then you need
to do a lot more work and cut the program up until you find the
specific thing that is causing the jump in memory usage to report a
bug to RS, or possibly even to Apple. Those are both rare, but they
definitely do happen!
James
PS, boy I haven't posted to the list in a long time! It feels good!
Peter Karlsson
2 nov 2006 kl. 13.44 skrev Sven E Olsson:
Hi,
I have done some Memory check to my intel and UB compiled apps.
My app is an "Text Editor" and I have about 15 documents I could
open with a menu "Open All" and simply close with "Close All"..
Test:
Launch my app (only some palettes is opened) 16MB
Open All Documents and when all is opened the Memory usage is,
first time second time and so on..
65MB, 72MB, 77MB, 84MB, 88MB, 93MB, 98MB, 102MB, 104MB, 108MB, 111MB
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>