laptop and a wrench

Error

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.

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM058647
EnviadoJune 29, 2010
Última modificaciónApril 2, 2025
Relacionado conNo Product Found
Versión encontrada10.0
Versión corregida10.1
EstadoFixed

Solución alternativa

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; }

Pasos para reproducir

ID del error: NIM058647

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga