iterative process building huge stack
iterative process building huge stack
- Subject: iterative process building huge stack
- From: James Maxwell <email@hidden>
- Date: Sun, 30 Jun 2013 12:38:18 -0700
I have a process that's generating a bunch of MIDI files. The process itself runs okay, but if I request a large number of files and pause execution at some point part way through, I notice that there are literally thousands of frames on the stack. In some cases, it will crash before it finishes; presumably because it runs out of stack space. I am using ARC (for the first time), so I'm wondering if it has something to do with methods retaining arguments and/or data they're using??? Or perhaps it has something to do with writing the files, which happens within the loop? For the time being, this all happens on the main thread (not ideal, but also not a problem for me, at this stage) -- could that have something to do with it?
It's really not practical to post code, since there's a lot of it, and it would be hard to make it clear how everything goes together, but if anybody has any top-of-the-head thoughts about where to start looking, I'd appreciate it.
J.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden