Ejemplo n.º 1
0
#pragma warning restore 0414
            public CreateObj(int Rep)
            {
                for (int i = 0; i < Rep; i++)
                {
                    Strmap = new STRMAP();
                }
            }
Ejemplo n.º 2
0
#pragma warning restore 0414
            public CreateObj(int Rep)
            {
                 for( int i=0; i< Rep; i++ )
                 {
                    Strmap = new STRMAP();
                 }
             }
Ejemplo n.º 3
0
 public static STRMAP[] CreateObj(int iObj)
 {
     STRMAP [] strmap = new STRMAP[iObj];
     for (int i = 0; i < iObj; i++) //allocate 3100KB
     {
         strmap[i] = new STRMAP();
     }
     return(strmap);
 }
Ejemplo n.º 4
0
        public static STRMAP[] CreateObj(int iObj)
        {

            STRMAP []strmap = new STRMAP[iObj];
            for (int i=0; i< iObj; i++ ) //allocate 3100KB
            {
                strmap[i] = new STRMAP();
            }
            return strmap;

        }
Ejemplo n.º 5
0
            public bool RunTest()
            {
                Strmap = null;

                GC.Collect();
                GC.WaitForPendingFinalizers();
                GC.Collect();

                Console.Out.WriteLine(FinalizeCount.icCreat + " NStruct Objects were deleted and " + FinalizeCount.icFinal + " finalized.");

                return(FinalizeCount.icCreat == FinalizeCount.icFinal);
            }
Ejemplo n.º 6
0
            public bool RunTest()
            {
                Strmap=null;

                GC.Collect();
                GC.WaitForPendingFinalizers();
                GC.Collect();

                Console.Out.WriteLine(FinalizeCount.icCreat + " NStruct Objects were deleted and "+ FinalizeCount.icFinal +" finalized.");

                return (FinalizeCount.icCreat == FinalizeCount.icFinal );
            }
Ejemplo n.º 7
0
 public static void CreateObj(int iObj)
 {
     STRMAP [] strmap = new STRMAP[iObj];
     for (int i = 0; i < iObj; i++) //allocate 3100KB
     {
         strmap[i] = new STRMAP();
     }
     for (int i = 0; i < iObj; i++)
     {
         strmap[i] = null;
     }
 }
Ejemplo n.º 8
0
        public static bool RunTest(int iObj,STRMAP []strmap)
        {

            for( int i=0; i< iObj; i++ )
            {
                strmap[i] = null;
            }

            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();

            return ( FinalizeCount.icFinal == FinalizeCount.icCreat );

        }
Ejemplo n.º 9
0
 public void DestroyStrmap()
 {
     Strmap = null;
 }
Ejemplo n.º 10
0
 public void DestoryStrmap()
 {
     Strmap = null;
 }
Ejemplo n.º 11
0
 public void DeleteStrmap()
 {
     Strmap = null;
 }