내 응용 프로그램에서 다음과 같은 오류를보고 있어요 :malloc_error_break에 중단 점을 설정하라는 메시지가 표시되는 이유는 무엇입니까?
(4446,0xa0bc94e0)의 malloc : *에 대한 오류 객체 0x1d153000 : 포인터 *이 디버그 malloc_error_break에 중단 점을 설정 할당되지 않은 해제되고
이 오류는 무엇을 의미합니까?
나는 테이블보기 2000 주소를 표시하려고하고 cellForRowAtIndexPath으로 다음 코드에서 해당 오류를보고하고이 원인이 될 수 무엇
- (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];
}
?
http://stackoverflow.com/questions/7796921/malloc-error-break-breakpoint-not-working – paulmelnikow
사파리 검사 삭제 http://stackoverflow.com/a/43885754/6521116 –