laptop and a wrench

不具合

The IFeatureSelection.SelectFeatures Method throws (RPC_E_SERVERFAULT ) exceptions when called with a query filter on an ArcMap dataset from an external Windows Forms application

最後に公開された状態: December 22, 2016 ArcObjects SDK
不具合 ID 番号 BUG-000096943
送信されましたJune 7, 2016
最終更新日June 5, 2024
適用対象ArcObjects SDK
見つかったバージョン10.4
オペレーティング システムWindows OS
オペレーティング システムのバージョン7.0 64 Bit
ステータスWill Not Be Addressed

参考情報

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

対処法

Use the IObjectFactory ArcObjects to get around the problem:C# Code:[STAThread()] static void Main(string[] args) { //ESRI License Initializer generated code. m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeBasic, esriLicenseProductCode.esriLicenseProductCodeStandard, esriLicenseProductCode.esriLicenseProductCodeAdvanced }, new esriLicenseExtensionCode[] { }); //ESRI License Initializer generated code. IAppROT pROT = new AppROT(); int itmCnt = 0; IApplication pAPP = null; while (itmCnt < pROT.Count) { pAPP = pROT.Item[itmCnt]; if (<a href="http://pAPP.Name" target="_blank">pAPP.Name</a> == "ArcMap") break; itmCnt++; } IMxDocument pMX = pAPP.Document as IMxDocument; IFeatureLayer pFL = pMX.FocusMap.Layer[0] as IFeatureLayer; IFeatureSelection pFSel = pFL as IFeatureSelection; ///TestConsole application space IQueryFilter pQF = new QueryFilter(); /// appRot application space IObjectFactory objectFactory = (IObjectFactory)pAPP; IPersist persist = (IPersist)pQF; System.Guid typeClassID; persist.GetClassID(out typeClassID); pQF = (IQueryFilter)objectFactory.Create(typeClassID.ToString("B")); pQF.WhereClause = "1=1"; IFeatureClass FC = pFL.FeatureClass; IFeatureCursor pFeatCursor = FC.Search(pQF, false); //pFSel.SelectionSet.Select(pQF, esriSelectionType.esriSelectionTypeHybrid, esriSelectionOption.esriSelectionOptionNormal, ((IDataset)pFL.FeatureClass).Workspace); pFSel.SelectFeatures(pQF, esriSelectionResultEnum.esriSelectionResultNew, true); //Do not make any call to ArcObjects after ShutDownApplication() }

再現の手順

不具合 ID: BUG-000096943

ソフトウェア:

  • ArcObjects SDK

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動