public LargeObject() {
		array = new int[1250000]; // 5 MB
		olargeobj = new OtherLargeObject[1000];		//20 MB
		for(int i=0;i< 1000;i++) {	  
		    olargeobj[i] = new OtherLargeObject(); 
		}
	}
 public LargeObject(int size)
 {
     _olargeobj = new OtherLargeObject[size];
     for (int i = 0; i < size; i++)
     {
         _olargeobj[i] = new OtherLargeObject();
     }
 }
Beispiel #3
0
 public LargeObject(int size)
 {
     _olargeobj = new OtherLargeObject[size];
     for (int i = 0; i < size; i++)
     {
         _olargeobj[i] = new OtherLargeObject();
     }
 }
Beispiel #4
0
 public LargeObject()
 {
     _array     = new int[1250000];           // 5 MB
     _olargeobj = new OtherLargeObject[1000]; //20 MB
     for (int i = 0; i < 1000; i++)
     {
         _olargeobj[i] = new OtherLargeObject();
     }
 }