Garbage Collection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All

I was wondering if System.Windows.Forms.Application.DoEvents() will invoke garbage collection...or does System.GC.Collect() need to be called before or after .DoEvents()

Thanks in advance
Kunkel
 
* =?Utf-8?B?S3Vua2Vs?= said:
I was wondering if System.Windows.Forms.Application.DoEvents() will invoke garbage collection...or does System.GC.Collect() need to be called before or after .DoEvents()?

In general, 'CG.Collect' should not be called manually. 'DoEvents'
doesn't invoke garbage collection.
 
Hi,


The dot net framework will automatically collect the garbage as
needed. If you call CG.Collect it will force the framework to collect the
garbage. Calling application.doevents is not necessary.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top