Re: Interesting Problem Code worked in 10.4 but not in 10.5
Re: Interesting Problem Code worked in 10.4 but not in 10.5
- Subject: Re: Interesting Problem Code worked in 10.4 but not in 10.5
- From: Jens Alfke <email@hidden>
- Date: Sun, 22 Jun 2008 20:50:23 -0700
On 22 Jun '08, at 4:08 PM, Clayton Leitch wrote:
#0 0x96cd5564 in NSDecimalCopy ()
#1 0x96d854f9 in NSDecimalSubtract ()
#2 0x96dadad8 in -[NSDecimalNumber
decimalNumberBySubtracting:withBehavior:] ()
#3 0x96dada47 in -[NSDecimalNumber decimalNumberBySubtracting:] ()
#4 0x00001b67 in -[MonthlyReport reportCurrentDifference]
(self=0x261bb30, _cmd=0x1fe6) at /Users/leitchc/Documents/Coding
Efforts/SoftCopyContract 2.0/MonthlyReport.m:30
Xcode has a debugger. Run the program with the debugger enabled, and
you'll drop into it when it crashes. Look at the topmost stack frame
that belongs to your app, see what statement it was in, and the values
of variables. In particular, what is the parameter being passed to
decimalNumberBySubtracting:? Use the "po" command on it to have gdb
print its description.
This isn't rocket science. This is how you debug an application...
—Jens_______________________________________________
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