Example #1
0
        static void Main(string[] args)
        {
            // Memory leak with managed objects
            var managedBigObjectGenerator = new ManagedBigObjectGenerator();

            managedBigObjectGenerator.CreateObjects();

            Console.WriteLine("Done");

            Console.ReadLine();
        }
Example #2
0
        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();
        }