This project has moved. For the latest updates, please go here.

image snapshot OutOfMemoryException and parameter is not valid

Jan 27, 2015 at 5:38 PM
I am taking snapshot in loop. I am getting these error (OutOfMemoryException /Parameter is not valid) repeatedly after some time, as well as in task manage i notice that it consumes the memory increasingly.
I am getting error in read method in adbhelper.
byte[] buffer = new byte[buflen];
some time i am getting error in rawimage.cs in ToImage method.
image = new Bitmap ( this.Width, this.Height, format );

have anyone receive the same error, and having some solution.
Feb 9, 2015 at 11:51 PM
Did you find a solution? I am having exactly the same issue.