AnsweredAssumed Answered

Unlocking a FeatureClass after edits

Question asked by sachatousignant on Jun 12, 2012
Latest reply on Jun 15, 2012 by Hornbydd
Hello everyone,

I'm trying to see if it's possible to unlock my FeatureClass after I added some features or modified some.



Here's some of the main lines :
IFeatureBuffer featureBuffer = infosXML.FeatureclassSitesReference.CreateFeatureBuffer(); IFeatureCursor cursorReferenceInsert = infosXML.FeatureclassSitesReference.Insert(true); featureBuffer.Shape = siteCourant.ShapeCopy; cursorReferenceInsert.InsertFeature(featureBuffer); cursorReferenceInsert.Flush();


Right now after doing this code, it locks the table from the others users.


EDIT :: It seems to be locked only when adding new features by either the way with FeatureBuffer + FeatureCursor or with FeatureClass.createFeature()
When modifying existing features and storing the changes, it doesn't lock the table.

Outcomes