• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Threads question - closing window while background image rendering ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Package Maker sometimes prohibit all HDDs
  • Next by Date: Re: Comparing dates
  • Previous by thread: Re: [newbie] one-to-one relationship both ways
  • Next by thread: Re: Cocoa FAQ Baby Steps - (was Re: Strange warnings)
  • Index(es):
    • Date
    • Thread