How to solve a filename conflict problem?

Discussion created by demdemeleeds on Jan 23, 2012
Latest reply on Jan 24, 2012 by demdemeleeds
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?