Question Locked

Garbage collection tuning

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

My appl has pauses ie., it appears unresponsive after some time.

Will you please tell me how to tune the memory, and garbage collection.

thanks in advance,

cheers,

Rathiika

3 replies

by thumbsup2

Sorry, but you'll need to provide far more information than that. We can't see what is in front of you and we're not psychic!

by tony hopkinson

Why do you think it's the GC that's causing a problem.

Normally the problem you describe is a tight processing loop in the UI Thread.

Nothing to do with the GC, simply that your application is too busy to process windows messages.

There are several solutions to that the easy, but naff one which more cures the symptoms than anything else. Is simply to call Application.DoEvents() at regular intervals.

In essence if you have to tune the GC, you are doing something wrong.
To learn how to 'tune' memory, you need to know how the GC works, and how your code works and then try to write GC friendly code.

This might help.

http://msdn.microsoft.com/en-us/library/ms973837.aspx

This discussion is closed to new replies.