[VB, C#] GC.Collect() or EmptyWorkingSet()?

Discussion in 'Mixed Languages' started by Muerto, Jul 2, 2015.

  1. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,817
    1,992
    60
    #1 Muerto, Jul 2, 2015
    Last edited: Jan 12, 2021
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. DougQuaid

    DougQuaid MDL Novice

    Aug 15, 2012
    39
    66
    0
    I'm using GC.Collect() when I'm working with large arrays. I set the references to them to null and then call GC.Collect() and memory gets freed. Never had any problems or performance issues with it. I've never used EmptyWorkingSet()
     
  3. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,817
    1,992
    60
    #3 Muerto, Jul 2, 2015
    Last edited: Jan 12, 2021
    (OP)
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...