Exemplo n.º 1
0
 public void MakeLeak(int iObj)
 {
     LeakObject[] Mv_Obj = new LeakObject[iObj];
     for (int i = 0; i < iObj; i++)
     {
         Mv_Obj[i] = new LeakObject(i);
     }
 }
Exemplo n.º 2
0
        public void MakeLeak(int iObj)
        {
            int [] mem;

            LeakObject [] Mv_Obj = new LeakObject[iObj];
            for (int i = 0; i < iObj; i++)
            {
                Mv_Obj[i]           = new LeakObject(i);
                mem                 = new int[1024 * 250]; //nearly 1MB memory, larger than this will get assert failure .
                mem[0]              = 1;
                mem[mem.Length - 1] = 1;
            }
        }
Exemplo n.º 3
0
        public void ThreadStart()
        {
            if (Cv_iCounter < Cv_iRep)
            {
                LeakObject[] Mv_Obj = new LeakObject[myObj];
                for (int i = 0; i < myObj; i++)
                {
                    Mv_Obj[i] = new LeakObject(i);
                }

                Cv_iCounter += 1;

                Thread Mv_Thread = new Thread(new ThreadStart(this.ThreadStart));
                Mv_Thread.Start();
            }
        }
Exemplo n.º 4
0
        public void ThreadStart()
        {
            if (Cv_iCounter < Cv_iRep)
            {
                LeakObject[] Mv_Obj = new LeakObject[myObj];
                for (int i = 0; i < myObj; i++)
                {
                    Mv_Obj[i] = new LeakObject(i);
                }

                Cv_iCounter += 1;

                Thread Mv_Thread = new Thread(new ThreadStart(this.ThreadStart));
                Mv_Thread.Start();
            }
        }
Exemplo n.º 5
0
        public void MakeLeak(int iObj)
        {
            int [] mem;

            LeakObject [] Mv_Obj = new LeakObject[iObj];
            for (int i = 0; i < iObj; i++)
            {
                Mv_Obj[i]           = new LeakObject(i);
                mem                 = new int[1024 * 250]; //nearly 1MB memory, larger than this will get assert failure .
                mem[0]              = 1;
                mem[mem.Length - 1] = 1;
            }

            Mv_Obj = null;

            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();
        }
Exemplo n.º 6
0
        public void MakeLeak(int iObj)
        {
            int [] mem;

            LeakObject []Mv_Obj = new LeakObject[iObj];
            for(int i=0; i<iObj; i++)
            {
                Mv_Obj[i] = new LeakObject(i);
                mem = new int[1024*250]; //nearly 1MB memory, larger than this will get assert failure .
                mem[0] = 1;
                mem[mem.Length-1] = 1;
            }

            Mv_Obj = null;

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

        }
Exemplo n.º 7
0
 public void MakeLeak(int iObj)
 {
     LeakObject[] Mv_Obj = new LeakObject[iObj];
     for (int i = 0; i < iObj; i++)
     {
         Mv_Obj[i] = new LeakObject(i);
     }
 }