FROM : Erik Buck
DATE : Fri Apr 06 19:26:06 2007
gdb) po numPagesField
<NSTextField: 0x4a84c80>
2) Later in the program, numPagesField suddenly becomes invalid
(although non-nil) :
(gdb) po numPagesField
Cannot access memory at address 0x15
(gdb) p numPagesField
$1 = (class NSTextField *) 0x15
Off the top of my head:
1) The object that stores the numPagesField outlet has been deallocated and its memory reused between the to po commands in gdb
2) You have a memory stomper bug which erroneously ovewrote all or part of the object that stores the numPagesField
3) You have two different objects which store two different numPagesField outlets and you are looking at one in the first po and the other in the second po
DATE : Fri Apr 06 19:26:06 2007
gdb) po numPagesField
<NSTextField: 0x4a84c80>
2) Later in the program, numPagesField suddenly becomes invalid
(although non-nil) :
(gdb) po numPagesField
Cannot access memory at address 0x15
(gdb) p numPagesField
$1 = (class NSTextField *) 0x15
Off the top of my head:
1) The object that stores the numPagesField outlet has been deallocated and its memory reused between the to po commands in gdb
2) You have a memory stomper bug which erroneously ovewrote all or part of the object that stores the numPagesField
3) You have two different objects which store two different numPagesField outlets and you are looking at one in the first po and the other in the second po






Cocoa mail archive

