On 28.12.2009, at 13:07, Quincey Morris wrote:

> On Dec 27, 2009, at 07:23, [email protected] 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to