tags:

views:

87

answers:

2

Hello,

(4446,0xa0bc94e0) malloc: * error for object 0x1d153000: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Cont

does anyone idea above the error. i am trying to 2000 address contact dispaly in tableview that time i am getting error.

Thank

A: 

The application is giving you a hint as to how to proceed: set a breakpoint in malloc_error_break. When you get there, inspect the application's backtrace. You'll probably find that you're over-releasing an object or holding on to a stale pointer.

Graham Lee
A: 

I am getting error on this part cellForRowAtIndexPath i am trying to 1500 record displayd

  • (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];

    }

    obdata = [AddressBookData alloc]; obdata = [arrayLocalAddressbook objectAtIndex:indexPath.row]; // Set button Tag

    cell.textLabel.text = [NSString stringWithString:obdata.lastname];

    return cell;

}

// Customize the number of sections in the table view. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { //return [indexArray count]; return 1;

}

// Customize the number of rows in the table view. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

return [arrayLocalAddressbook count];

}

milanjansari