MallocDebug
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.