in my application I am getting an exception: MyApp(38431,0xa004ffa0) malloc: *** error for object 0xa08be760: pointer being freed was not allocated
Is there a way for XCode to show me where this pointer is? How can I find where the problem is?
I know that I can type info line*[address] and it may show me where the line is. But now it doesn’t work for me.
How can I get a number of line or name of a variable where exception is being thrown?
Thank you in advance,
Ilya
You’re calling free() without calling malloc(). Look for uninitialized pointers. If you’re using a debugger (gdb) you should be able to type “bt” for “backtrace” and this will show you the stack at the time the error occurs.