Threads question - closing window while background image rendering ?
Threads question - closing window while background image rendering ?
- Subject: Threads question - closing window while background image rendering ?
- From: Bob Miller <email@hidden>
- Date: Fri, 26 Sep 2003 09:16:37 -0400
Hello,
I hope someone can help. I'm having a problem with NSThreads. I have a
window that contains a custom view that displays among other things
NSImages. In order to keep the application 'snappy' I've implemented an
NSThread to do background image rendering before the image gets
displayed on the view. The process works fine except in one case. If
the rendering thread is executing and the window is subsequently closed
of course there is a crash. Even though the dealloc method for my
custom view does not get called until after the rendering thread has
completed, there still seems to be something that causes a crash. I'm
guessing that it has something to do with the current graphics context
? I've tried retaining the current context and releasing it at the end
of my thread code but that doesn't help, nor does retaining my custom
view. Anyone else run into this situation ? Any help would be greatly
appreciated
Thanks in advance for any help,
Regards,
Bob
[demime 0.98b removed an attachment of type image/gif which had a name of spongebob.sm..gif]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.