Follow-up Comment #2, bug #23727 (project gnustep):
Thank you for the quick reply!
About question 2:
I have configured and compiled gnustep-make and gnustep-base using the
--enable-native-objc-exceptions. The @[EMAIL PROTECTED] blocks do catch
exceptions, except if it is raised after a forwardInvocation call.
I have also tried to use the NS_DURING, NS_HANDLER, and NS_ENDHANDLER macros,
with the same results. I think that native exception handling works for me in
the normal way, only not through a forwardInvocation call. Could this be
related to the ffcall library?
my compiler:
gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)
Copyright (C) 2006 Free Software Foundation, Inc.
gnustep-base-1.14.1 and gnustep-make-2.0.2 is compiled from source.
To justify that it works the following program correctly catches the
exception I raise, but fails to catch the execption comming from the
NSDictionary object.
#include <Foundation/Foundation.h>
int main(){
CREATE_AUTORELEASE_POOL(pool);
NSString *key1 = @"one";
NSNumber *key2 = [NSNumber numberWithInt: 2];
NSString *value1 = @"firstValue";
NSString *value2 = @"secondValue";
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setObject: value1 forKey: key1];
[dict setObject: value2 forKey: key2];
@try {
[NSException raise: @"TestException"
format: @"Just testing"];
[EMAIL PROTECTED](NSException *e){
NSLog(@"%@", e);
}
@try {
NSLog(@"dictionary: %@", dict);
[EMAIL PROTECTED] (NSException *e){
NSLog(@"%@", e);
}
[pool release];
return 0;
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23727>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep