Re: Crash in SetSystemUIMode
Re: Crash in SetSystemUIMode
- Subject: Re: Crash in SetSystemUIMode
- From: Eric Schlegel <email@hidden>
- Date: Wed, 8 Feb 2006 09:07:55 -0800
On Feb 7, 2006, at 3:36 PM, Eric Crichlow wrote:
I'm getting a crash in a call to SetSystemUIMode, while trying
to set
the desktop to full screen mode.
This crash only happens in 10.4 and only happens sporadically.
I thought the crash might be related to calling this method from a
thread, but even switching to a single thread model doesn't make a
difference. Actually, the crash happens less often in the multi-
threaded
case.
Well, SetSystemUIMode is not thread-safe, so you definitely don't
want to call it from anything other than the main thread.
Are you making other API calls from non-main threads? Have you
verified that each of those calls is thread-safe? It looks like the
crash is occuring in CoreGraphics due to some corrupted state, which
might indicate that you're using non-thread-safe calls incorrectly.
-eric
_______________________________________________
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