NSMutableArray EXC_BAD_EXCESS SIGBUS
Posted
by sujyanarayan
on Stack Overflow
See other posts from Stack Overflow
or by sujyanarayan
Published on 2010-04-13T11:32:13Z
Indexed on
2010/04/13
11:32 UTC
Read the original article
Hit count: 316
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.
© Stack Overflow or respective owner