English 中文(简体)
“在将项目升级至Xcode 4.2 和5之后,对自由物体的错误进行校正检查
原标题:‘Incorrect checksum for freed object’ error after upgrading project to Xcode 4.2 and iOS 5

当我最近将我的“i”升级为“OS 5”和升级的Xcode时,项目Ive在5个月中工作,现在有一个错误。 在此之前,我成功地进行了分析和介绍,没有任何问题。 现在,我有一个错误得到纠正,另一个人满为患。

我的一个很好例子是以下法典:

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy-MM-dd hh:mm"];
NSString *dateStr = [formatter stringFromDate:self.chargeDate];
[formatter release];

我用了数百次,没有任何问题。 现在,我每三驾 the《刑法》时都会遇到以下错误:

incorrect checksum for freed object

What could be causing this error?

问题回答

你颁布的法典没有任何特别错误。 你在第一个拨款项目中正出现错误,这表明,由于你在座其他地方的记忆管理不善,你已经陷入腐败。 这将难以诊断。 职业介绍。

直到现在,你才设法摆脱了这一局面,但根本问题可能总是存在。 仅仅这样,“Si”5就表明了这一点。





相关问题
How do free and malloc work in C?

I m trying to figure out what would happened if I try to free a pointer "from the middle" for example, look at the following code: char *ptr = (char*)malloc(10*sizeof(char)); for (char i=0 ; i<10 ...

bring malloc() back to its initial state

Do you know if there is a way to bring back malloc in its initial state, as if the program was just starting ? reason : I am developing an embedded application with the nintendods devkitpro and I ...

Unit testing C library, memory management

I am working on a quite large C library that doesn t have any tests now. As the API starts to be final, I d like to start writing unit tests. Nearly all my functions acts on the first parameter (a ...

double free error with pointer to array of mpz_t

I m currently learning libgmp and to that end I m writing a small program which find prime factors. My program calls a function which fills an array with a varying amount of mpz_t integers, prime ...

SIGSEGV, (seemingly) caused by printf

First and foremost, apologies for any cross-posting. Hope I m not repeating an issue here, but I was unable to find this elsewhere (via Google and Stack Overflow). Here s the gist of the error. If I ...

Core Data Malloc Errors

I ve noticed I m getting a few errors at random points in my app. I ve had 2 errors, "double free" and "incorrect checksum for freed object". Heres the stack trace of a "double free" error. Can anyone ...

Opening a file with path in malloc

I m trying to open a file with fopen, but I don t want a static location so I am getting the string in from the user when he/she runs the program. However if a user does not enter one a default file ...

热门标签