Example #1
0
        public bool runTest(int iRep, int iObj, int iNum)
        {
            DoubLink L_Node1 = new DoubLink(iNum);
            DLinkNode L_Node2 = new DLinkNode(iNum, null, null);

            for(int i= 0; i< iRep; i++)
            {
                G_Vart = new Object[iObj];
                for(int j=0; j< iObj; j++)
                {
                    if(j%2 == 1)
                        G_Vart[j] = (L_Node1);
                    else
                        G_Vart[j] = (L_Node2);
                }
                MakeLeak(iRep, iObj, iNum);

            }
            return true;
        }
Example #2
0
        public void MakeLeak(int iRep, int iObj, int iNum)
        {
            DoubLink L_Node1 = new DoubLink(iNum);
            DLinkNode L_Node2 = new DLinkNode(iNum, null, null);
            Object[] L_Vart1 = new Object[iObj];
            Object[] L_Vart2;

            for (int i = 0; i < iRep; i++)
            {
                L_Vart2 = new Object[iObj];
                for (int j = 0; j < iObj; j++)
                {
                    if (j % 2 == 1)
                    {
                        L_Vart1[j] = (j);
                        L_Vart2[j] = ((double)j);
                    }
                    else
                    {
                        L_Vart2[j] = (L_Node2);
                        L_Vart1[j] = (L_Node1);
                    }
                }
            }
        }