• 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: IsBadCodePtr in Cocoa or Unix?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IsBadCodePtr in Cocoa or Unix?


  • Subject: Re: IsBadCodePtr in Cocoa or Unix?
  • From: Eric Gorr <email@hidden>
  • Date: Thu, 16 Apr 2009 14:31:31 -0400


On Apr 16, 2009, at 2:21 PM, Clark Cox wrote:

On Thu, Apr 16, 2009 at 11:09 AM, Eric Gorr <email@hidden> wrote:
I was wondering if anyone knows of a Cocoa or Unix based equivalent for this
window function...?

Not really. And if you're at the point where you're asking whether or not a pointer is "bad" in production code, you've already failed :)

I agree.

What problem are you actually trying to solve, perhaps there is a better way.

It's actually not my problem, so I can't say for sure. I was just asked by someone who is porting some Windows code to the Mac what an equivalent function was and I didn't know. They wanted an answer, so I asked here for them.


Even on Windows, the use of that function is discouraged (as indicated
by the documentation that you linked to):

"IsBadXxxPtr should really be called CrashProgramRandomly

Interesting. I didn't actually read it, but was just told it was the function they were using.


I will forward your answer on and perhaps try to get some more information on what they are trying to do and why.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >IsBadCodePtr in Cocoa or Unix? (From: Eric Gorr <email@hidden>)
 >Re: IsBadCodePtr in Cocoa or Unix? (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: IsBadCodePtr in Cocoa or Unix?
  • Next by Date: Re: IsBadCodePtr in Cocoa or Unix?
  • Previous by thread: Re: IsBadCodePtr in Cocoa or Unix?
  • Next by thread: BAS use of asl_log()
  • Index(es):
    • Date
    • Thread