Re: NSImage thread safety
Re: NSImage thread safety
- Subject: Re: NSImage thread safety
- From: j o a r <email@hidden>
- Date: Mon, 31 Jan 2005 20:18:05 +0100
On 2005-01-31, at 19.47, Benjohn wrote:
I'm trying to sort out a crash in our application. Having turned lots
of things off, I'm currently suspicious that it's down to two threads
concurrently querying the same NSImage (specificially, asking for its
bounds). Can this cause a problem?
"bounds" is not a property of NSImage...
Have you read the available documentation for thread safety concerns
with Cocoa classes? As a rule of thumb I would say that you should
never assume that anything is thread safe unless it's explicitly stated
that it is.
Try to create a test case where you can reproduce the problem. It would
be useful to have if you'd like to have more input from the list, or if
you would like to contact Apple about it.
Can you remove the crashes completely by locking access to the images
by only one thread at a time? How easy is it to reproduce the problem?
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden