Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exception on a simple arithmetic problem



This happen during debugging my C code under XCode, compiled for Intel platform,

double fVal, fTemp;

fTemp = filesize; /* filesize is a long long and is greater than 0 */
fVal = 100.0 / (double) fTemp; /* EXC_ARITHMETIC happens here */


The debugger stop and throws EXC_ARITHMETIC message at the calculation line. When the program is in release mode(compile with - O2), this problem never happens during runtime. I am using OS 10.4.3 (8F1111).

What condition makes EXC_ARITHMETIC exception to be thrown under Pentium ?

There was never an exception of this kind happen when I am doing PowerPC debugging. I am already missing PowerPC Macs.

Thanks in advance.

Peter.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.