Quote:I understand now, but then maybe i can create some kind of method that determines amount of memory allocated and then fire GC.
As the others have said, it's a waste of time.
Your estimate of "memory allocated" and it's need to be garbage collected will always be significantly inferior to just letting the system do it when it actually needs to. Many. many applications run without ever having the GC cut in: If you feel that some of your objects need "proper disposal" then implement the IDisposable interface for the class, and either Dispose them when needed, or create them within a
block so the system gets rid of them automatically.
Unless you have a very odd app, you should not need to call the Garbage Collector yourself. Why do you think you need to?