If I use the following code everything works fine on the first pass, the subsequent passes however yield 0 features returned so I'm wondering if it has to do with opening and closing the Personal Geodatabase file (.mdb)?
Dim fLayer As FeatureLayer = layerOverlay.Layers(ViewState("SelectedLayer"))
Dim pointShape As New PointShape(position.X, position.Y)
fLayer.Open()
Dim tempFeatures As Collection(Of Feature) = fLayer.FeatureSource.GetFeaturesNearestTo(pointShape, Map1.MapUnit, 1, ReturningColumnsType.NoColumns)
fLayer.Close()
Note - this code works fine when the layer is a shape file.
Update - I've sent a sample project along with sample data to the support email.