laptop and a wrench

Bogue

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.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM058647
EnvoiJune 29, 2010
Dernière modificationApril 2, 2025
S’applique àNo Product Found
Version trouvée10.0
Version de correction10.1
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM058647

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement