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
 
Back
Top