I have an example piece of code the illustrates issues in my code when GC.Collect is carried out on a class having a ReaderWriterLockSlim member variable. The GC.Collect takes between 2 and 3 seconds to run. I need to carry out GC at regular intervals because
my applicaton is extremely memory intensive.
public class DataItem
private readonly ReaderWriterLockSlim m_propertyLock = new ReaderWriterLockSlim();
/// Interaction logic for Window1.xaml
public partial class Window1 : Window
List<DataItem> dataItemList = new List<DataItem>();
View Complete Post