Skip navigation.
 
mlRe: NSSpellChecker crashes after 64k words
FROM : Evan DiBiase
DATE : Tue Apr 12 17:41:20 2005

On Apr 12, 2005, at 11:07 AM, The Karl Adam wrote:

> Have you tried this with code that just creates auto-released objects?


I whipped up a sample program to test this:

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
   NSString *s;
   int i;
   
   for (i = 0; true; i++) {
       s = [NSString stringWithString:@"<email_removed>"];
       NSLog(@"%d", i);
   }
   
    [pool release];
    return 0;
}

It's still going strong at 200,000 strings created. I'll keep it
running for a while, though, and if it crashes I'll let the list know.

Evan

Related mailsAuthorDate
mlNSSpellChecker crashes after 64k words Denis Stanton Apr 11, 02:35
mlRe: NSSpellChecker crashes after 64k words Dan Saul Apr 11, 18:22
mlRe: NSSpellChecker crashes after 64k words Denis Stanton Apr 12, 10:47
mlRe: NSSpellChecker crashes after 64k words Louis C. Sacha Apr 12, 12:07
mlRe: NSSpellChecker crashes after 64k words The Karl Adam Apr 12, 17:07
mlRe: NSSpellChecker crashes after 64k words Evan DiBiase Apr 12, 17:41
mlRe: NSSpellChecker crashes after 64k words Louis C. Sacha Apr 13, 01:02
mlRe: NSSpellChecker crashes after 64k words Hamish Allan Apr 13, 02:23
mlRe: NSSpellChecker crashes after 64k words Denis Stanton Apr 13, 06:20
mlRe: NSSpellChecker crashes after 64k words Denis Stanton Apr 13, 22:38