G
Guest
Hi, I don't understand why the following simple code produce an
OutOfMemoryException only on the device and not on the emulator:
private void button1_Click(object sender, System.EventArgs e)
{
double dValue;
double dX,dY,dSum,dSub;
dX=10;
dY=5;
Sum(dX,dY,out dSum, out dSub);
}
public void Sum(double dX, double dY, out double dSum, out double dSub)
{
dSum=dX+dY;
dSub=dX-dY;
}
Do you see an error ?
Thank you in advance for any help.
Keven Corazza
OutOfMemoryException only on the device and not on the emulator:
private void button1_Click(object sender, System.EventArgs e)
{
double dValue;
double dX,dY,dSum,dSub;
dX=10;
dY=5;
Sum(dX,dY,out dSum, out dSub);
}
public void Sum(double dX, double dY, out double dSum, out double dSub)
{
dSum=dX+dY;
dSub=dX-dY;
}
Do you see an error ?
Thank you in advance for any help.
Keven Corazza