On Jan 8, 2009, at 08:49, Davide Benini wrote:

And here the application terminates and I get this error message

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFNumber decimalNumberByRoundingAccordingToBehavior:]: unrecognized selector sent to instance 0x10755e0'

By far the most common cause of an error like this (the class of the object is not what you expect) is a memory management bug in your code.

That is, the NSDecimalNumber object (to which something is holding a pointer) has actually been improperly released and deallocated. By chance, the same block of memory has since been reused for a completely unrelated object (a NSNumber object, in this case).

Check to see that you've followed memory management rules everywhere. (Look for a missing retain or an extra release.)


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to