Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rj2house

macrumors newbie
Original poster
Oct 10, 2008
1
0
I try to test the following code in Xcode, with performance tool 'Object Allocations'. I found that the memory is still keep increasing. What's wrong?

while (1) {
UIImageView *a;
a = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 210,20)];
[a release];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.