[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnustep] Failure without AutoreleasePool
From: |
richard |
Subject: |
Re: [Bug-gnustep] Failure without AutoreleasePool |
Date: |
Wed, 20 Sep 2000 15:36:27 +0100 |
On Wed, 20 Sep 2000 06:11:47 -0700, humasect@home.com wrote:
> -[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 should be fixed now - a problem with exception strings being created
before [NSString +initialize] had completed.