int main(int argc, char *argv[])
{
setenv("MallocPreScribble","1",1);
setenv("MallocScribble","1",1);
setenv("MallocCheckHeapStart","0",1);
setenv("MallocCheckHeapEach","1",1);
setenv("MallocCheckHeapAbort","1",1);
setenv("MallocBadFreeAbort","1",1);
When I comment these lines out, I no longer observe the undesired information, and performance is nominal. So, apparently, setenv() has been fixed in Leopard! Too bad there is no way to file an "anti-bug".
Frank
On Oct 28, 2007, at 3:54 AM, Chris Espinosa wrote:
Check for a
~/.MacOSX/environment.plist file in your home directory; settings in this file take effect on login for all processes in your session.
If you haven't enabled GuardMalloc, are not launching under MallocDebug or Instruments, and haven't set them in the executable environment, they're being set globally, is my guess.
Chris