Skip navigation.
 
mlAddress of pointer just changes
FROM : Jonas Oberschweiber
DATE : Tue Jul 18 22:17:39 2006

Hi,

In the header file of one of my classes (a NSView subclass, contained 
in a NSScrollView) I have an instance variable: NSMutableArray 
*changeViews.

At first the changeViews pointer points to 0x301610, which is 
correct, but when the app has fully started and I scroll the 
NSScrollView and my NSView subclass trys to redraw itself and trys to 
access changeViews, it just points to 0x1 and the application 
terminates with a EXC_BAD_ACCESS. I've done some debugging and I can 
tell that at the end of the last of my functions changeViews still 
points to 0x301610. When I continue to Step Into, I get as far as 
"asm dyld_stub__spin_lock 0x90196380:1" and then it says: "Xcode 
could not locate source file: cpu_capabilities.h (line: 179)". At 
this point, changeViews is still 0x301610. When I now hit Continue 
and try to scroll, the application terminates with EXC_BAD_ACCESS, 
the debugger shows up and Memory Viewer says changeViews points to 0x1.

I really have no idea what to do now.

Best Regards

Jonas

Related mailsAuthorDate
mlAddress of pointer just changes Jonas Oberschweibe… Jul 18, 22:17
mlRe: Address of pointer just changes Jonas Oberschweibe… Jul 18, 23:55
mlRe: Address of pointer just changes j o a r Jul 18, 23:58
mlRe: Address of pointer just changes Jonas Oberschweibe… Jul 19, 00:04