Im gettting a rather strange issue.
I'm busy testing my code for edit features from a shapefile. When I delete a feature, the feature itself is removed, however the corresponding row in the dbf file remains. I assume it gets marked as dirty, as when I open the dbf in excell it shows that the row is gone, yet if I open the shapefile in ArcView, it shows that the row still exists.
Unfortuantely this is now causing a null reference issue.
Below is an example of my code.
ShapeFileFeatureLayer currentLayer = (ShapeFileFeatureLayer)_Map.DynamicLayers.Layer["MyLayer"];
currentLayer.Open();
currentLayer.EditTools.BeginTransaction();
currentLayer.EditTools.Delete("11");
currentLayer.CommitTransaction();
currentLater.Close();