Re: A malloc error in C++
Re: A malloc error in C++
- Subject: Re: A malloc error in C++
- From: Lyndsey Ferguson <email@hidden>
- Date: Wed, 29 Aug 2007 11:20:45 -0400
- Thread-topic: A malloc error in C++
On 8/29/07 11:15 AM, "Giacomo Monari" <email@hidden> wrote:
>>> lab3_1(1517) malloc: *** error for object 0x1804400: incorrect
>>> checksum for freed object - object was probably modified after being
>>> freed, break at szone_error to debug
>>> lab3_1(1517) malloc: *** set a breakpoint in szone_error to debug
>>>
>>> lab3_1 has exited due to signal 11 (SIGSEGV).
> Thx and sorry guys but still doesn't work. Before I forgot to say that I
> added those calls to the destructors only to see if something would have
> changed, but it didn't...
> Removing them and also adding the braces, Aaron, brings no changes... :(
> What could be?
> Giacomo
Try this:
1. Turn off "Start executable after starting debugger" in the executable (in
your Xcode project -- see attached image).
2. Click debug, the debugger will load your app.
3. Type "b szone_error".
4. Type "run"
5. When your application runs, it should break when memory is about to be
corrupted. Look at the stack crawl. This should lead you to a solution.
Good luck,
Lyndsey
--
Mr. Lyndsey D. Ferguson
Software Engineer
Nemetschek N.A., Inc.
http://www.nemetschek.net
_______________________________________________
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