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

image snapshot OutOfMemoryException and parameter is not valid

Jan 27, 2015 at 6: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 10, 2015 at 12:51 AM
Did you find a solution? I am having exactly the same issue.