.Net Sucks

I’m reimplementing full text search for .Net using Lucene. The result is a whole crap:

The process cannot access the file ‘C:…’ because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

I think issue is related with resource management in .Net.