Re: EXC_BAD_ACCESS on breakpoint
Re: EXC_BAD_ACCESS on breakpoint
- Subject: Re: EXC_BAD_ACCESS on breakpoint
- From: Tino Rachui <email@hidden>
- Date: Fri, 7 May 2010 06:45:24 +0200
Interesting I see this behavior as well when I debug my (completely
different) program. I ask on the ADC lists already. No answer so far.
Maybe this is a gdb bug!?
-Tino
Sent by mobile
Am 07.05.2010 um 04:21 schrieb Brent Smith <email@hidden>:
Hey all,
I have an NSTask thats running a method for me and Im trying to
debug why its currently not working. I can go about using my program
normally when I select Build and Run, but when I add a breakpoint
and select Build and Debug I get an EXC_BAD_ACCESS. Normally this is
caused by some sort of deallocation, but Im not dealing with any
deallocating objects. Turning on NSZombieEnabled doesnt change
anything. The code is as follows
mainPool = [[ NSAutoreleasePool alloc ] init ];
NSData *newLines;
NSString *newLinesString;
newLines = [[aNotification object] availableData ];
newLinesString = [[[NSString alloc ] initWithData: newLines
encoding:NSUTF8StringEncoding] retain];
if(![newLinesString isEqualToString:@""])
{
NSArray *tempArray = [newLinesString
componentsSeparatedByString:@"\n"];
NSMutableArray *mArray = [[NSMutableArray alloc]
initWithArray:tempArray];
I also receive this error just before the call.
If I look at my newLinesString variable in the Locals section, it
looks perfect.
Not really sure whats going on here.
Cancelling call - objc code on the current thread's stack makes this
unsafe._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden