‘IFeatureLayer::FeatureClass property cannot access FeatureClass, If the layer is loaded using GxLayer object in an application which uses desktop windows form template’.
上次发布: August 19, 2020ArcGIS for Desktop
漏洞 ID 编号
NIM064879
已提交
February 7, 2011
上次修改时间
February 20, 2025
适用范围
ArcGIS for Desktop
找到的版本
10.0
编程语言
VB.Net
操作系统
Windows OS
操作系统版本
7 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.
解决办法
The workaround is to add the license control to the Windows form or, alternatively, add these two lines of code at the beginning of the Form_Load procedure: --------Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try ‘ THESE NEXT TWO LINES workaround the issue Dim myctl As ESRI.ArcGIS.Controls.LicenseControl myctl = New ESRI.ArcGIS.Controls.LicenseControl Dim lGxLayer As IGxLayer lGxLayer = New GxLayer----------------------------------------------This workaround is not useful for the customer as the ne user will not have Engine installed.