Set pFeatureLayer = pLayer pSpatialFilter.SpatialRel = esriSpatialRelOverlaps Set pSpatialFilter.geometry = pInFeature.ShapeCopy Set pFeatureCursor = pFeatureLayer.FeatureClass.Search(pSpatialFilter, False) Set pFeature = pFeatureCursor.NextFeature
Hi Henk,
I tried the code with some testing data and I don't see any errors. I wonder have you tried the code with any other dataset? Can you see consistent behavior?
Thanks,
Chelsea