Garbage collection tuning

By rathiika ·

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,



This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by ThumbsUp2 In reply to Garbage collection tuning

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!

Collapse -

Way too big a topic

by Tony Hopkinson In reply to Garbage collection tuning

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.

Related Discussions

Related Forums