• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS


  • Subject: Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
  • From: iseecolors <email@hidden>
  • Date: Mon, 13 Apr 2009 14:00:08 -0700

In the third line where you do the assignment, do you mean to work with n1, or is there another object somewhere?

Rich

On Apr 13, 2009, at 1:47 PM, email@hidden wrote:

Is this a known issue with NSDecimalNumber ?

NSDecimalNumber *n1 = (NSDecimalNumber *)[NSDecimalNumber numberWithDouble:1.0];
NSDecimalNumber *n2 = nil;
n = [n decimalNumberByAdding:n2];


result = EXC_BAD_ACCESS

There seems to be nothing in the docs to suggest that the parameter is unduly sensitive.

Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




_______________________________________________

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


  • Follow-Ups:
    • Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
      • From: "email@hidden" <email@hidden>
References: 
 >NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: NSDocument reference held by NSSavePanel?
  • Next by Date: Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
  • Previous by thread: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
  • Next by thread: Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread