I have an app that is leaking memory (occasionally which is the strange
bit). How can I use BDS to detect where the problem is or do I have to try
another third party tool?
Sham.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Borland newsgroup denizen Sergio González has a new CD of
Irish music out, and it's good: http://tinyurl.com/7hgfr
Explaining the details are a bit tricky. I have a service that tries to get
the changes from an ECOSpace using a synchronization server.
In Eco it is EcoSpace.Persistence.GetChanges(). Every time I pass this line
in the debugger, I see the memory usage go up by 200k. Since I am polling,
the memory increases.
If I do a GC.Collect(), this does not happen.
Sham.
Sham.
"Craig Stuntz [TeamB]" <craig_...@nospam.please [a.k.a. acm.org]> wrote
in message news:456b0a35$1...@newsgroups.borland.com...
> If I do a GC.Collect(), this does not happen.
Off the top of my head this sounds like you have an object which
implements IDisposable that you (or a component you're using) aren't
disposing (e.g., with using). Collecting will queue it up for
finalization which will dispose the object. But that's a guess.
Here are some general hints for tracking down allocation issues in
.NET apps:
http://blogs.msdn.com/ricom/archive/2004/12/10/279612.aspx
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Everything You Need to Know About InterBase Character Sets:
http://blogs.teamb.com/craigstuntz/articles/403.aspx