• 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: AfxIsValidAddress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AfxIsValidAddress


  • Subject: Re: AfxIsValidAddress
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 14 Jul 2015 11:02:48 -0600

On Jul 14, 2015, at 10:44 AM, Jens Alfke <email@hidden> wrote:
>
> I don’t know, I’m not a Windows programmer. It would help if you told us what that function does.

It appears to be a placebo for debugging memory problems:

<http://ofekshilon.com/2011/01/31/afxisvalidaddress-et-al-dont-work-as-advertised/>

TL;DR, here you go:

BOOL AfxIsValidAddress(const void *p, size_t nBytes) {
  return p != NULL;
}

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice






_______________________________________________

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: 
 >AfxIsValidAddress (From: "Raglan T. Tiger" <email@hidden>)
 >Re: AfxIsValidAddress (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: AfxIsValidAddress
  • Next by Date: Re: AfxIsValidAddress
  • Previous by thread: Re: AfxIsValidAddress
  • Next by thread: Re: AfxIsValidAddress
  • Index(es):
    • Date
    • Thread