• 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: Problem with STL map when running on both PPC and Intel platforms
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with STL map when running on both PPC and Intel platforms


  • Subject: Re: Problem with STL map when running on both PPC and Intel platforms
  • From: Paul Walmsley <email@hidden>
  • Date: Thu, 26 Oct 2006 13:28:26 +0100


But on the PPC Mac minis (and the MacBook Pro when I run in PPC mode under Rosetta) it crashes due to corruption of the STL map...
We've been using STL map extensively on both platforms for a long time, and haven't come across any problems. I doubt very much that there is a bug in the map implementation.
Any ideas please ?

I would suspect that you've got an unchecked iterator, eg:

   map::iterator it=myMap.find("data");
   it->DoSomething();

Or maybe you're taking an iterator, then inserting an item which invalidates that iterator. Are you using value-based types or pointers? If you have a map of keys to pointers then maybe you have some ownership problems where items are being double-deleted, or similar.

Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem with STL map when running on both PPC and Intel platforms (From: Darren Staples <email@hidden>)

  • Prev by Date: Mac fkeys
  • Next by Date: Re: Mac fkeys
  • Previous by thread: Problem with STL map when running on both PPC and Intel platforms
  • Next by thread: Re: Problem with STL map when running on both PPC and Intel platforms
  • Index(es):
    • Date
    • Thread