• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re: pointer address changes for no reason
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: OpenGL and CoreImage
  • Next by Date: A incredible problem about core image generated from the opengl texture.
  • Previous by thread: Re: pointer address changes for no reason (SOLVED)
  • Next by thread: A incredible problem about core image generated from the opengl texture.
  • Index(es):
    • Date
    • Thread