MallocDebug
MallocDebug
- Subject: MallocDebug
- From: peter michaux <email@hidden>
- Date: Wed, 21 Jan 2004 12:11:27 -0800 (PST)
Hi,
I want to learn how to use XCode's MallocDebug. I
wrote the following test code. When I choose teh menu
option Debug/Launch using Performance Tool/MallocDebug
not much seems to happen. The build and run button
turns translucent and the stop button turns opaque. No
windows open and I cannot see where the executable is
running. What do I do?
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",
__FUNCTION__)
}
//free(intp);
}
int main (void) {
int i;
for(i=0; i<1000; i++){
f();
}
return 0;
}
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
_______________________________________________
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.