Skip to content

Instantly share code, notes, and snippets.

@pjbeaman
Created April 13, 2012 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjbeaman/2377539 to your computer and use it in GitHub Desktop.
Save pjbeaman/2377539 to your computer and use it in GitHub Desktop.
MonoTouch.UIKit.UIKitThreadAccessException has been thrown
UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.
at MonoTouch.UIKit.UIApplication.EnsureUIThread () [0x00019] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:49
at MonoTouch.UIKit.UIApplication.get_BackgroundTimeRemaining () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.g.cs:774
at Example_BackgroundExecution.AppDelegate.FinishLongRunningTask (Int32 taskID) [0x00016] in /Users/pjbeaman/GitHubRepositories/monotouch-samples/BackgroundExecution/AppDelegate.cs:76
at Example_BackgroundExecution.AppDelegate+<DidEnterBackground>c__AnonStorey0.<>m__1 () [0x00000] in /Users/pjbeaman/GitHubRepositories/monotouch-samples/BackgroundExecution/AppDelegate.cs:68
at System.Threading.Thread.StartInternal () [0x0001d] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading/Thread.cs:691
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment