Re: Nested AutoRelease Pools Crash

2009-06-05 Thread Reinhard Segeler
Maybe you solved the problem in the meantime, otherwise I recommend to use the solution below, which I use in my app - without the if condition with break - and works fine Am 26.04.2009 um 18:37 schrieb Trygve Inda: - (void)threadMethod:(id)anObject { NSAutoreleasePool* outterPool = [[NSAu

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Trygve Inda
> Trygve Inda wrote: > >> Sorry - what I thought were irrelevant parts were partly removed to >> keep the >> email line wrap nice. I'll try to narrow it down some more. > > > Instead of narrowing it down only for emailing, you might actually > refactor it so the main loop looks more like the par

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Greg Guerin
Trygve Inda wrote: Sorry - what I thought were irrelevant parts were partly removed to keep the email line wrap nice. I'll try to narrow it down some more. Instead of narrowing it down only for emailing, you might actually refactor it so the main loop looks more like the paraphrase you

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Trygve Inda
>> - (void)threadMethod:(id)anObject >> { >>   NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; >> >>   NSDictionary*    userDefaults = [NSUserDefaults standardUserDefaults] >>   importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; > > +standardUserDefaults don't re

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Trygve Inda
> 2009/4/26 Trygve Inda : >> - (void)threadMethod:(id)anObject >> { >>   NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; >> >>   NSDictionary*    userDefaults = [NSUserDefaults standardUserDefaults] >>   importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; >> >>  

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Dave Keck
> - (void)threadMethod:(id)anObject > { >   NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; > >   NSDictionary*    userDefaults = [NSUserDefaults standardUserDefaults] >   importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; +standardUserDefaults don't return no dic

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Michael Ash
2009/4/26 Trygve Inda : > - (void)threadMethod:(id)anObject > { >   NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; > >   NSDictionary*    userDefaults = [NSUserDefaults standardUserDefaults] >   importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; > >    while (1) >

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Clark Cox
2009/4/26 Trygve Inda : >> - (void)threadMethod:(id)anObject >> { >>    NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; >> >>    NSDictionary*    userDefaults = [NSUserDefaults standardUserDefaults] >>    importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; >> >>    

Re: Nested AutoRelease Pools Crash

2009-04-26 Thread Trygve Inda
> - (void)threadMethod:(id)anObject > { >NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; > >NSDictionary*userDefaults = [NSUserDefaults standardUserDefaults] >importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; > > while (1) > { >

Nested AutoRelease Pools Crash

2009-04-26 Thread Trygve Inda
- (void)threadMethod:(id)anObject { NSAutoreleasePool* outterPool = [[NSAutoreleasePool alloc] init]; NSDictionary*userDefaults = [NSUserDefaults standardUserDefaults] importantValue = [[userDefaults objectForKey:@"myKey"] boolValue]; while (1) { NSAutorelease