-[NSString stringWithCString:] fails without at least one
AutoreleasePool, maybe other
methods in NSString as well.
This code segfaults in a recursive exception loop, trying to create an
NSString for the
exception, but it's NSString that's failing :)
int main (int argc, char **argv)
{
NSString *string;
string = [NSString stringWithCString:argv[1]];
return 0;
}
This, however, works fine:
int main (int argc, char **argv)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *string;
string = [NSString stringWithCString:argv[1]];
RELEASE(pool);
return 0;
}
--Humasect
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep