static void Main(string[] args) { // Memory leak with managed objects var managedBigObjectGenerator = new ManagedBigObjectGenerator(); managedBigObjectGenerator.CreateObjects(); Console.WriteLine("Done"); Console.ReadLine(); }
static void Main(string[] args) { // Memory leak with managed objects var managedBigObjectGenerator = new ManagedBigObjectGenerator(); managedBigObjectGenerator.CreateObjects(); // Memory leak with managed objects and weak references //var managedBigObjectGeneratorWithWeakRef = new ManagedBigObjectGeneratorWithWeakReferences(); //managedBigObjectGeneratorWithWeakRef.CreateObjects(); // Memory leak with unmanaged objects //var unmanagedBigObjectGenerator = new UnmanagedBigObjectGenerator(); //unmanagedBigObjectGenerator.CreateObjects(); Console.WriteLine("Done"); Console.ReadLine(); }