• 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: Simple Exception Handler - Revelation part Deux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Exception Handler - Revelation part Deux


  • Subject: Re: Simple Exception Handler - Revelation part Deux
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Sat, 20 Apr 2002 12:29:31 -0700

The following is the output within PowerBuilder after launching the
attached routine:
2002-04-20 12:24:26.683 Converter[341] Bytes= 1000000000000.000000
2002-04-20 12:24:26.685 Converter[341] *** Exception handlers were not
properly removed. Some code has jumped or returned out of an
NS_DURING...NS_HANDLER region without using the NS_VOIDRETURN or
NS_VALUERETURN macros.

Converter.app has exited due to signal 10 (SIGBUS).

The attached is the routine that I call, without actually raising any
Exception.

[demime 0.98b removed an attachment of type application/octet-stream which had a name of Bytes.m]
/* Bytes */

#import <Cocoa/Cocoa.h>

@interface Bytes : NSObject
{
double iBytes[7][7];
NSDecimalNumber *myNumber;
NSException *myException;
}
- (void)LoadOnes;
- (void)LoadFactors;
- (double)ComputeResult :(long)sourceValue :(NSString *)sUnit :(NSString *)tUnit;
@end
I don't need to actually cause an Exception. I just ran it....trying to
translate 1 terabyte into # bytes. I simple conversion process.

Of course, with out the Exception block, all is okay. If I actually
raise an exception, all is okay. But as it stands, I get the error.

Any ideas?

Ric.



On Saturday, April 20, 2002, at 09:20 AM, Ondra Cada wrote:

>
> On Saturday, April 20, 2002, at 05:40 , Frederick C. Lee wrote:
>
>> via system-level exception like math/number error...
>
> Are you surely speaking of _exceptions_? Unix-level signals and
> Cocoa-level exceptions are two beasts of quite different feather, so to
> say, and if you happen to be mixing them, the strange behaviour might
> be quite natural.
>
> Would you show me a program line which "raises a system-level
> exception"?
> ---
> Ondra Cada
> OCSoftware: email@hidden http://www.ocs.cz
> 2K Development: email@hidden http://www.2kdevelopment.cz
> private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Simple Exception Handler - Revelation part Deux (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: mysql,cocoa,escape characters
  • Next by Date: Re: [ANN] Cocoa Browser ver 0.3
  • Previous by thread: Re: Simple Exception Handler - Revelation part Deux
  • Next by thread: XY Graph
  • Index(es):
    • Date
    • Thread