laptop and a wrench

漏洞

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.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM058647
已提交June 29, 2010
上次修改时间April 2, 2025
适用范围No Product Found
找到的版本10.0
修正版本10.1
状态Fixed

解决办法

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

重现步骤

漏洞 ID: NIM058647

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项