Hi, I've the following code which causes crashes after sometime as i've set the below code in a timer:
CGImageRef cgImage = UIGetScreenImage();
[array addObject:(id)cgImage];
CGImageRelease(cgImage);
Where initiallly i've declared array
as:
array = [[NSMutableArray alloc] init];
The timer goes well till 10 seconds as timer is of 1/10 seconds after 10 seconds it crashes.
I think the application crashes because of EXC_BAD_EXCESS
but dont know how to solve.
Can anybody help in solving the problem?
Thanks in Adv.