Re: AfxIsValidAddress
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