Tuesday, 27 August 2013

Simple method of allocating extact amount of RAM

Simple method of allocating extact amount of RAM

I want to create a function that makes my application allocate X RAM for Y
seconds (I know theres 1.2GB limit on objects).
Is there better way than this?
[MethodImpl(MethodImplOptions.NoOptimization)]
public void TakeRam(int X, int Y)
{
Byte[] doubleArray = new Byte[X];
System.Threading.Sleep(Y)
return
}

No comments:

Post a Comment