Error 24 too many files open
- Get link
- X
- Other Apps
i developing small game app using uikit + uiimages. in normal condition app running without problem . when use rashly crash error
<notice>: imageio: cgimageread_mapdata 'open' failed '/var/mobile/applications/01e69c96-cf79-466f-93ab-3a6752af1295/picturebook.app/nextpage.png'
<notice>: error = 24 (too many open files).
relesing image views , videos after usage. tested app leak tool. there no leaks also. no warnings, no potential leaks etc...
searched answer, didn't appropriate answer yet. knows answer , please reply. posted of codes below.
code:- (nsmutablearray *)flowerarray { if (!_flowerarray) { _flowerarray = [[nsmutablearray alloc]init]; (int = 1; <= 5; i++) { uiimage *flowerim = [[uiimage alloc] initwithcontentsoffile:[[nsbundle mainbundle] pathforresource:[nsstring stringwithformat:@"01_flower_0%d.png",i] oftype:nil]]; [_flowerarray addobject:flowerim]; [flowerim release]; } } return _flowerarray; } -(void)flowerimagesanimate { self.flowerimage.animationimages = self.flowerarray; self.flowerarray = nil; self.flowerimage.animationduration = 1.0; self.flowerimage.animationrepeatcount = 3; [self.flowerimage startanimating]; } -(void)playerprepare { [self.view addsubview:[self.presentview playerprepare]]; } -(void)wakeuppanjo { nsstring *url = [[nsbundle mainbundle] pathforresource:@"01_anim" oftype:@"mp4"]; nsurl *movieurl = [nsurl fileurlwithpath:url]; self.presentview.player = [[mpmovieplayercontroller alloc] initwithcontenturl:movieurl]; [[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(moviefinishedcallback name:mpmovieplayerplaybackdidfinishnotification object:self.presentview.player]; [self.presentview.player preparetoplay]; [self performselector:@selector(playerprepare) withobject:nil afterdelay:0.5]; wakeuptimer = nil; } -(void)viewload { wakeuptimer = [nstimer scheduledtimerwithtimeinterval:videodelay target:self selector:@selector(wakeuppanjo) userinfo:nil repeats:no]; [self performselector:@selector(flowerimagesanimate) withobject:nil afterdelay:flowerpopupdelay]; } - (void)viewdidload { [super viewdidload]; // additional setup after loading view nib. [self performselectoronmainthread:@selector(viewload) withobject:nil waituntildone:false]; }
you question better answered if ask in:
iphone/ipad programming
http://forums.macrumors.com/forumdisplay.php?f=135
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
- Get link
- X
- Other Apps
Comments
Post a Comment