Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a procedure to remove and delete a feature layer with a certain name. Then, using another procedure which is called during the run time of the program (as the remove and delete procedure as well) I try to create a new feature layer which needs to have the same filename as that removed-deleted before. Unfortunatley, the program stops in the code line that tries to create the new feature layer. It is definetely because of the conflict between the previous and the new filename which are the same. How can I solve this problem? Any help please?

share|improve this question
Are you using IDataset.Delete to delete the file(s) associated with the layer that is being removed? – Kirk Kuykendall Jan 21 '12 at 21:47
@Kirk: Yes.I use the delete method of IDataset. – Demetris Jan 22 '12 at 10:01
What error are you getting? – Kirk Kuykendall Jan 22 '12 at 19:47
@KirkKuykendall let me guess - 'COMException'! Oh how I don't miss ArcObjects development – tomfumb Jan 22 '12 at 23:36
No I do not get any message. Simply, the program stops by highlighting the line I try to create (using Thiessen polygons GP) the new feature class that has the same name as that deleted some time before (during run-time). – Demetris Jan 23 '12 at 5:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.