Ejemplo n.º 1
0
 static void Main()
 {
     Console.WriteLine("Main Method");
       m1();
       TestClass atomic = new TestClass(4, 5);
       atomic.maketest();
       TestClassRef atomic2 = new TestClassRef();
       MonoEmbed.TestWriteSetInt(atomic, 8, 777);
       MonoEmbed.TestWriteSetInt(atomic, 12, 999);
       MonoEmbed.TestWriteSetRef(atomic2, 8, new A(555));
       MonoEmbed.TestWriteSetInt(atomic, 12, 111);
       MonoEmbed.TestWriteSetPrint();
       m2();
       MonoEmbed.TestWriteSetPrint();
 }
Ejemplo n.º 2
0
 static void Main()
 {
     Console.WriteLine("Main Method");
       m1();
     TestClass atomic = new TestClass(4, 5);
       atomic.maketest(222, 333);
       atomic.printAtomic();
       atomic.maketest(777, 999);
       atomic.printAtomic();
       m2();
       		// atomic.printAtomic();
       // Console.WriteLine("------ TOTAL MEM: "  + GC.GetTotalMemory(false));
       TestClassRef atomic3 = new TestClassRef(); // COLOCANDO ESTA LINHA EM COMENTARIO JA NAO DA CRASH
       TestClass atomic2 = new TestClass(44, 57);
       atomic2.maketest(444,555);
       atomic2.printAtomic();
       // atomic.printAtomic();
 }
Ejemplo n.º 3
0
 static void m3()
 {
     TestClass atomic = new TestClass(4, 5);
       atomic.maketest();
       // Console.WriteLine("------ TOTAL MEM: "  + GC.GetTotalMemory(false));
       GC.Collect();
       GC.WaitForPendingFinalizers();
       GC.Collect();
       		atomic.printAtomic();
       // Console.WriteLine("------ TOTAL MEM: "  + GC.GetTotalMemory(false));
 }