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

MallocDebug


  • Subject: MallocDebug
  • From: peter michaux <email@hidden>
  • Date: Sat, 24 Jan 2004 14:51:46 -0800 (PST)

Hi,

I want to learn how to use XCode's MallocDebug. I
wrote the following test code. When I click launch
from the MallocDebug window I get an error. The error
says:


Read Data
Unable to read malloc information from /Users/
peter/mallocDebugtest/build/mallocDebugtest


What's going wrong?

Thanks,
Peter


#include <stdio.h>
#include <stdlib.h>

void f(void){
    int *intp;

    intp = (int *)calloc(1000000,sizeof(int));

    if (intp == NULL) {
        printf("%s: calloc request failed\n",
__func__)
    }

    //free(intp);
}

int main (void) {
    int i;

    for(i=0; i<1000; i++){
        f();
    }
    return 0;
}

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: XCode & the web
  • Next by Date: Debugging a privileged process
  • Previous by thread: MallocDebug
  • Next by thread: Cycling Between Splits in a Split Editor
  • Index(es):
    • Date
    • Thread