Skip navigation.
 
mlre: pointer address changes for no reason
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

Related mailsAuthorDate
mlpointer address changes for no reason Ewan Delanoy Apr 6, 18:43
mlre: pointer address changes for no reason Erik Buck Apr 6, 19:26
mlRe: pointer address changes for no reason Nick Zitzmann Apr 6, 20:16
mlRe: pointer address changes for no reason Ewan Delanoy Apr 7, 12:57
mlRe: pointer address changes for no reason Scott Ribe Apr 9, 02:55
mlRe: pointer address changes for no reason Ewan Delanoy Apr 9, 10:08
mlRe: pointer address changes for no reason Nick Zitzmann Apr 9, 18:05
mlRe: pointer address changes for no reason Scott Ribe Apr 9, 19:40
mlRe: pointer address changes for no reason John Stiles Apr 10, 20:22
mlRe: pointer address changes for no reason Bill Bumgarner Apr 10, 20:32
mlRe: pointer address changes for no reason Ewan Delanoy Apr 11, 09:47
mlRe: pointer address changes for no reason Scott Ribe Apr 11, 18:07
mlRe: pointer address changes for no reason Ewan Delanoy Apr 11, 18:38
mlRe: pointer address changes for no reason Michael Babin Apr 12, 22:45
mlRe: pointer address changes for no reason (SOLVED) Ewan Delanoy Apr 13, 10:42