When I ran my app I got this type of crash message:
error for object 0xd280010: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug**
I dont know how to debug this type of error. Can anyone help me?
UPDATE:
Got Error Here:
+ (void)runRequests
{
// Should keep the runloop from exiting
CFRunLoopSourceContext context = {0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
CFRunLoopSourceRef source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context);
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
BOOL runAlways = YES; // Introduced to cheat Static Analyzer
while (runAlways) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1.0e10, true);//in this line i got error
[pool drain];
}
// Should never be called, but anyway
CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
CFRelease(source);
}