IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)dataset.Workspace; workspaceEdit.StartEditing(true); // Start an edit operation and create a cursor. workspaceEdit.StartEditOperation(); IRow selectedRow = getSelectedRow(); selectedRow.Delete(); Marshal.ReleaseComObject(featureCursor); // Stop the edit operation. workspaceEdit.StopEditOperation(); // Stop the edit session. workspaceEdit.StopEditing(true);
after long debugging session , i found out that i have to release the cursor inside getSelectedRow() methodMarshal.ReleaseComObject(pFtrCsr1)thank you guys for trying help me. i appreciate that
Try calling updateContents() on the mxDocument.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.