• 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: Customizing variable's summary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing variable's summary


  • Subject: Re: Customizing variable's summary
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 12 Nov 2003 04:07:49 -0800

On Wednesday, November 12, 2003, at 02:29AM, Eric Albert <email@hidden> wrote:

>At 11:56 AM -0800 11/11/03, Ricky Sharp wrote:
>>Would it be better than crashing to basically code up an "is pointer
>>valid" routine?  Someone posted to carbon-dev some clever code (that
>>uses mach-messages?) to see if a pointer is valid within the current
>>context.  Is there perhaps an API that can be called to give us such
>>functionality, or would each plugin developer potentially need to
>>roll their own solution?
>
>That "someone" was me, a long time ago. :)  I've pasted the code
>below.  While I can't speak for any of the OS or dev tools teams, I
>don't think this would be a good API.  It's only a test of whether
>the address in question is mapped in your process' address space.  If
>you're looking at an uninitialized value, sometimes that value will
>randomly happen to be in your address space.

Good catch about pointers that could randomly be in your space; didn't think about that one.

Thanks for reposting the code!

Rick
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: code completion joke?
  • Next by Date: Re: Xcode and info.plist?
  • Previous by thread: Re: Customizing variable's summary
  • Next by thread: Ensure project is saved before SCM commit?
  • Index(es):
    • Date
    • Thread