Any tips for finding a slow memory leak?

Hi all
Any tricks to find a slow leak in Web2? Most forum posts are pretty old.
I’m loosing around .2Mb a minute which adds up. Not appending text to any text fields and no arrays getting big. Is there a way to profile for this?

What always gets me is circular references. Just last week I found one because by chance I was debugging a class destructor and the destructor would never fire. I had some code in the class that was instantiating an object with New Object(self)… but the object was a property of the class. Easy fix with a weak reference in that situation.

Hope you find it! It is really annoying.

1 Like