Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Memory leak

1 view
Skip to first unread message

sham

unread,
Nov 24, 2006, 6:48:19 AM11/24/06
to
Hi to all,

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]

unread,
Nov 27, 2006, 9:54:29 AM11/27/06
to
It depends on the personality you're using. Is this a C# app? Can you
give more details of the leak?

--
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

sham

unread,
Nov 27, 2006, 12:54:24 PM11/27/06
to
Yes, CSharp.

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...

Craig Stuntz [TeamB]

unread,
Nov 27, 2006, 12:31:30 PM11/27/06
to
sham wrote:

> 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

0 new messages