Detecting the presence of Guard Malloc in code?
Detecting the presence of Guard Malloc in code?
- Subject: Detecting the presence of Guard Malloc in code?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 3 Feb 2006 10:50:14 -0700
I tried searching around, but I can't seem to find any way of
detecting whether or not Guard Malloc is currently being used inside
the image. I'd like to know because, if Guard Malloc is running, I'd
rather not have my task launch a particular NSTask, since the NSTask
will be launched with Guard Malloc running as well, and I don't want
this to happen.
I already tried using NSIsSymbolNameDefined() and _dyld_func_lookup()
with a number of different combinations of GMmalloc (GMmalloc,
_GMmalloc, __dyld_GMmalloc) and none of them are returning a true
value. Is there a method that works, and if so, then what is it?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden