process can't access the file 'a0000000a.freelist',its being used by another process

Discussion created by lalit.arora on Dec 16, 2013
Latest reply on Dec 17, 2013 by lalit.arora

I'm migrating code from 9.3.1 to 10.2

I got below error while testing, it was working perfectly in 9.3.1.

ErrorDescription:The process cannot access the file 'a0000000a.freelist' because it is being used by another process.

To reproduce this

1. Create a File GDB
2. Create dataset
3. create 4-5 feature classes in dataset
3. create a geometric network using INetworkLoader3 --> LoadNetwork for these feature classes within dataset.
4. Delete geometric network by looping EnumDataset within FGDB.
5. Release memory of all COM objects.
6. On deleting File GDB this error is coming. Seems after deleting the geometric network it still keeps memory reference.

Please suggest,