PDA

View Full Version : "Cannot access memory at address 0x4" error




okskpark
May 27, 2009, 04:50 AM
Hi

I have the error message.
So I tried a lot of ways. Even I reinstalled XCode.

But, it still appeared. So I created new project (coredata document based) and I just build and debug the project. (I didn't do anything.)

I can see the same error message.

What the hell is this?

the error message is like this
Running…
[Switching to process 729 thread 0x4103]
[Switching to process 729 thread 0x4103]
Program received signal: “EXC_BAD_ACCESS”.
Cannot access memory at address 0x4
Cannot access memory at address 0x4
kill
quit


Program~~
Cannot~~
Cannot~~
These three lines are always same.

Thanks.



jpyc7
May 27, 2009, 09:58 AM
Hi

I have the error message.
So I tried a lot of ways. Even I reinstalled XCode.

But, it still appeared. So I created new project (coredata document based) and I just build and debug the project. (I didn't do anything.)

I can see the same error message.

What the hell is this?

the error message is like this


Program~~
Cannot~~
Cannot~~
These three lines are always same.

Thanks.

Um, it looks like you incremented a NULL pointer (represented as 0) on a 32-bit machine and then tried to dereference it. You need to use your debugger to get a stack trace so you know what line in your program that this happens.

If you're saying that you were given the source code and this happens, then you might contact the programmer about this bug. There's also the possibility that you were supposed to give some input to the program and you gave an invalid value that it doesn't handle.