laptop and a wrench

Bug

ISelectionSet::RemoveList() returns an error if Delete has been called on any of the OIDs (rows).

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM038348
SubmittedSeptember 10, 2008
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version foundOther
StatusWill Not Be Addressed

Description

If the data is in SDE, there are over 100 features in the selection set, and another component has the stream to the logfile open for reading, ISelectionSet:RemoveList and ISelectionSet:AddList fail with the following error message:

"Error while reading or writing logfile[]".

Cause

SDE does not allow the selection set to be updated while it is being used elsewhere in the system to iterate through the features.

Workaround



One way to hold on to the selection is by doing the following:

Code:
Dim pAV as IActiveView
Dim pEnumfeature as IEnumFeature
Dim pFeature as IFeature
Set pAV = pMap
Set pEnumFeature = pAV.Selection
Set pFeature = pEnumFeature.Next

Call the following after enumerating through the features to release stream:

Code:
pEnumFeature.Reset

Steps to Reproduce

Bug ID: NIM038348

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options