Beispiel #1
0
        static void Main(string[] args)
        {
            SomeGlobalClass SGC = new SomeGlobalClass();
            BigData         d   = new BigData();
            BigData         d2  = new BigData();

            d.Dispose();
            d2.Dispose();
            d  = null;
            d2 = null;

            GC.Collect();

            while (true)
            {
                using (d = new BigData())
                    using (d2 = new BigData());
            }
        }
Beispiel #2
0
 public SomeGlobalClass()
 {
     Instance = this;
 }