laptop and a wrench

Bug

The ArcGIS Mobile walk through for creating a first project extension returns the error "the calling thread must be STA, because many UI components require this" when creating a new MenuItem object.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM058647
SubmittedJune 29, 2010
Last ModifiedApril 2, 2025
Applies toNo Product Found
Version found10.0
Version Fixed10.1
StatusFixed

Workaround

Add the following line above the System.Windows.Controls.MenuItem ami = new System.Windows.Controls.MenuItem();if (!MobileApplication.Current.Dispatcher.CheckAccess()) { MobileApplication.Current.Dispatcher.BeginInvoke((System.Threading.ThreadStart)delegate() { Initialize(); }); return; }

Steps to Reproduce

Bug ID: NIM058647

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options