XCode problems when moving from XCode 1.5 to 2.2
XCode problems when moving from XCode 1.5 to 2.2
- Subject: XCode problems when moving from XCode 1.5 to 2.2
- From: Jim Crafton <email@hidden>
- Date: Fri, 2 Dec 2005 13:11:57 -0500
I am having problems with my C++ code at runtime since moving to xcode
2.2 on 10.4.x from xcode 1.5 on 10.3.9.
Code that compiles and runs fine in GCC3.3 on 10.3.x, (and on
VC6/7.0/7.1 in Win32), suddenly has began to output
"*** malloc[4691]: Deallocation of a pointer not malloced: ;
This could be a double free(), or free() called with the middle of
an allocated block; " or something similar
In addition, template code that made use of dynamic_cast() to cast a
base class pointer to a more specific type now returns NULL instead of
the correct pointer address. This is on code that worked fine in gcc
3.3
If I switch the default compiler from GCC4 to GCC 3.3 (using
gcc_select) then the dynamic_cast bug goes away, but the malloc
problems seem to linger. Putting a breakpoint on malloc_printf (as
suggested in TN2124) seems to suggest that there's some problem in the
STL's dispose call.
None of this makes any sense to me, and I was wondering if anyone else
had similar problems or might know of a workaround.
If it matters, when I installed 10.4, I upgraded it over an existing
10.3 volume.
Cheers
Jim
_______________________________________________
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