예제 #1
0
#pragma warning restore 0414


        public CreateObj()
        {
            mv_Obj = new BaseFinal();
            //Printing GetTotalMemory is commented out so that the test can build on RedHawk
            //Console.WriteLine("before test started, the heapsize is {0}", GC.GetTotalMemory(false));

            for (int i = 1; i < 1000; i++)
            {
                obj = new BNode(i);     //create new one and delete the last one.
                mv_Obj.CreateNode(i);   //create locate objects in createNode().
            }
            Console.Write(BNode.icCreateNode);
            Console.WriteLine(" Nodes were created.");

            //Console.WriteLine("after all objects were created, the heapsize is " + GC.GetTotalMemory(false));
        }
예제 #2
0
#pragma warning restore 0414


        public CreateObj()
        {

            mv_Obj = new BaseFinal();
            //Printing GetTotalMemory is commented out so that the test can build on RedHawk
            //Console.WriteLine("before test started, the heapsize is {0}", GC.GetTotalMemory(false));

            for( int i=1; i< 1000; i++)
            {
                obj = new BNode(i);     //create new one and delete the last one.
                mv_Obj.CreateNode( i ); //create locate objects in createNode().
            }
            Console.Write(BNode.icCreateNode);
             Console.WriteLine(" Nodes were created.");

            //Console.WriteLine("after all objects were created, the heapsize is " + GC.GetTotalMemory(false));
        }