Having trouble with confusing behaviour of error between debug and release modes in Xcode

Posted by Cocorico on Stack Overflow See other posts from Stack Overflow or by Cocorico
Published on 2010-04-24T01:43:29Z Indexed on 2010/04/24 1:53 UTC
Read the original article Hit count: 266

Filed under:
|
|

Hi guys,

I am confused over something (what is new!). I have an iPhone program I am writing and using some sqlite in a certain method, and there is some error which is giving me a message that says

"Program received signal: “EXC_BAD_ACCESS”

Okay, so I am trying to hunt down why this is doing this, and I notice something: When I run the program in debug mode, it gives me this error every single time I access this method (I test on the device). However when I run the program in release mode, I can access this method 2 times, and then it will give me this error the third time.

So I mean, can someone just give me an explanation of what might cause this, I think that maybe deep-down I am not that smart on the difference in XCode of debug and release modes. I think that release mode does optimizing, and I guess the actual assembly machine code comes out different, yes? I AM A BIG NEWBIE USER UNFORTUNATELY! I am not clear on a lot of things like this, or whether it needs for I to remove nslog commands in the release build and such.

Maybe I should just post the actual code in separate Stack OVerflow post, and see if people can see the error, then maybe this all become clear to me.

© Stack Overflow or respective owner

Related posts about xcode

Related posts about debug