• 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
Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation


  • Subject: Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
  • From: Clark Cox <email@hidden>
  • Date: Thu, 19 Feb 2009 17:37:55 -0800

On Thu, Feb 19, 2009 at 10:29 AM, Leo Singer <email@hidden> wrote:

> A std::vector would be unsuitable also because in my actual
> application (not the cooked example I sent out) I need to be able to
> manipulate that memory directly.

Not true; std::vector's memory is guaranteed to be contiguous; you can
treat it exactly as you did your raw array before.

std::vector is *exactly* what you want in this case; it meets every
requirement that you've stated.

--
Clark S. Cox III
email@hidden
_______________________________________________

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

References: 
 >Running out of memory on stack in C++ routine invoked within Cocoa NSOperation (From: Leo Singer <email@hidden>)
 >Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation (From: Michael Vannorsdel <email@hidden>)
 >Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation (From: Greg Parker <email@hidden>)
 >Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation (From: Leo Singer <email@hidden>)

  • Prev by Date: Re: Need recommendations for best way to build a custom view
  • Next by Date: Re: Need recommendations for best way to build a custom view
  • Previous by thread: Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
  • Next by thread: Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
  • Index(es):
    • Date
    • Thread