Re: Threads + Garbage Collection = Crash?

2008-10-02 Thread Bill Bumgarner
On Oct 1, 2008, at 5:35 AM, Oleg Krupnov wrote: In my application, I create a (single) background thread, for creating thumbnail images. I use NSRunLoop and - [NSObject performSelector:onThread:withObject:waitUntilDone:] to communicate between the main and the background threads. I am

Re: Threads + Garbage Collection = Crash?

2008-10-02 Thread Bill Bumgarner
On Oct 1, 2008, at 9:17 AM, Ashley Clark wrote: As for your crashes I think I can offer some advice. If you're not doing any mallocs then most likely you're passing objects back to your main thread through some shared space, possibly via contextInfo: Yes -- this can be a problem. If the

Re: Threads + Garbage Collection = Crash?

2008-10-02 Thread Ashley Clark
On Oct 2, 2008, at 12:28 PM, Bill Bumgarner wrote: On Oct 1, 2008, at 9:17 AM, Ashley Clark wrote: As for your crashes I think I can offer some advice. If you're not doing any mallocs then most likely you're passing objects back to your main thread through some shared space, possibly via

Re: Threads + Garbage Collection = Crash?

2008-10-02 Thread Bill Bumgarner
On Oct 2, 2008, at 11:46 AM, Ashley Clark wrote: Looking at your other email to the list about this I think my issue was that I was passing the objects to a delegate method using an NSInvocation object and then in that delegate method sending them on to the main thread through a contextInfo

Threads + Garbage Collection = Crash?

2008-10-01 Thread Oleg Krupnov
In my application, I create a (single) background thread, for creating thumbnail images. I use NSRunLoop and - [NSObject performSelector:onThread:withObject:waitUntilDone:] to communicate between the main and the background threads. I am experiencing weird random crashes with the following log:

Re: Threads + Garbage Collection = Crash?

2008-10-01 Thread Ashley Clark
In my application, I create a (single) background thread, for creating thumbnail images. I use NSRunLoop and - [NSObject performSelector:onThread:withObject:waitUntilDone:] to communicate between the main and the background threads. I am experiencing weird random crashes with the following