laptop and a wrench

Bug

‘IFeatureLayer::FeatureClass property cannot access FeatureClass, If the layer is loaded using GxLayer object in an application which uses desktop windows form template’.

Last Published: August 19, 2020 ArcGIS for Desktop
Bug ID Number NIM064879
SubmittedFebruary 7, 2011
Last ModifiedFebruary 20, 2025
Applies toArcGIS for Desktop
Version found10.0
Program languageVB.Net
Operating SystemWindows OS
Operating System Version7 64 Bit
StatusWill Not Be Addressed

Additional Information

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.

Workaround

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.

Steps to Reproduce

Bug ID: NIM064879

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options