I create a tool to add new line features. After enter the values for a new feature, the featuer is updated by pFC.UpdateFeature(pFeature); When I open the table of the feature class, I observe that the new created feature does have the values as I entered. However, the features created before loss their values (if it is int, its value becomes 0). How can I fix this bug? Thanks if you can help.
Based on what you said about the tool, I would recommend using store instead of updatefeature and I would also recommend creating the feature and setting the values within the same edit operation. This will create and set the values all in one operation and will trigger the appropriate events that the different components of the editor extension and custom extension are expecting. UpdateFeatures short-circuits the events, making faster for bulk updates but components relying on events won't work.