re: pointer address changes for no reason
re: pointer address changes for no reason
- Subject: re: pointer address changes for no reason
- From: Erik Buck <email@hidden>
- Date: Fri, 6 Apr 2007 10:26:06 -0700 (PDT)
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-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden