stl::set problem - long vs. int - crash!
stl::set problem - long vs. int - crash!
- Subject: stl::set problem - long vs. int - crash!
- From: Hendrik Wendler <email@hidden>
- Date: Sat, 04 Oct 2008 02:10:08 +0200
Hi all,
our development process got stuck because
of a nasty problem. After an upgrade of several
osx tools ( namely xcode 3.1.1 incl. 10.5 )
suddenly our software crashes at simple
instruction sequences like this:
wxApp::OnInit()
{
std::set<int> vv;
vv.insert(10); // <- crash!
}
the crash seems to be somehow related
to incorrect parameter handling.
when i step into insert() _x cannot be
seen anymore or - going further - has
strange values like 1573820203 and the
like.
if i create a new and simple command
line project, everything runs fine,
using all frameworks ( 10.4, 10.5 ),
so i assume the installation was ok.
our software uses the same stl headers
as the tested simple projects.
investigating the problem further
showed that
std::set<int> vv; crashes
std::set<long> vv; works
but checking sizeof(int) sizeof (long)
always returned 4 on this system, so this
should not be the problem.
is there any hidden typedef active?
pleading for a simple hint,
hendrik
_______________________________________________
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