• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iterative process building huge stack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: iterative process building huge stack
      • From: Michael Crawford <email@hidden>
  • Prev by Date: Re: Attributed strings in NSTableViews
  • Next by Date: Re: Attributed strings in NSTableViews
  • Previous by thread: Re: Cocoa-dev Digest, Vol 10, Issue 400
  • Next by thread: Re: iterative process building huge stack
  • Index(es):
    • Date
    • Thread