Re: Program not working under Snow Leopard
Re: Program not working under Snow Leopard
- Subject: Re: Program not working under Snow Leopard
- From: Kai Brüning <email@hidden>
- Date: Mon, 28 Dec 2009 14:24:51 +0100
On 28.12.2009, at 13:07, Quincey Morris wrote:
> On Dec 27, 2009, at 07:23, email@hidden wrote:
>
>> I'm working on a program that manages file downloads via NSURLConnection. I was developing under Leopard and the program was working just fine. I've switched to a new computer running Snow Leopard with the latest Xcode. My program now crashes with the ever popular EXEC_BAD_ACCESS error at seemingly random points. At first it was consistently crashing when I was attempting to reference the value in an NSDate variable (via NSLog). So I commented that line out and then it crashed with the same error on a different variable. Also, I can run the program just fine in the debugger with it set to Debug. Once it's set to Release it crashes. I've confirmed the settings are identical for Debug/Release. And as I said, this code worked fine in Leopard.
>
> No one can say the cause without further evidence. However, given the symptoms, the *high probability* is that:
>
> 1. You have a memory management bug in your code.
>
> 2. It never showed up under Leopard by pure luck.
Since you switched computers together with the OS, there’s another possibility: is your old computer by chance single-core? And do you have any threading in your code? If so, threading bugs tend to be much worse under multi-core because you are introducing real parallelism.
Good luck
Kai
_______________________________________________
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