Re: Problem with STL map when running on both PPC and Intel platforms
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