🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.language.csharp
4 messages
4 total messages Started by sham Fri, 24 Nov 2006 11:48
Memory leak
#102
Author: sham
Date: Fri, 24 Nov 2006 11:48
7 lines
1002 bytes
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. 
Re: Memory leak
#103
Author: Craig Stuntz TeamB
Date: Mon, 27 Nov 2006 14:54
8 lines
1460 bytes
	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
Re: Memory leak
#105
Author: Craig Stuntz TeamB
Date: Mon, 27 Nov 2006 17:31
19 lines
1824 bytes
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
Re: Memory leak
#104
Author: sham
Date: Mon, 27 Nov 2006 17:54
25 lines
1863 bytes
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_stuntz@nospam.please [a.k.a. acm.org]> wrote 
in message news:456b0a35$1@newsgroups.borland.com...
> 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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads