The process cannot access the file "EVSET2BC7601F642B1175BD6C0A956232F5CF.xml" because it is being used by another process.
Posted on 2006-07-08
I'm getting this exception thrown when I run one of my threads.
EXCEPTION GETEPP: The process cannot access the file "C:\EVENTSETTINGS\EVSET2BC7601F642B1175BD6C0A956232F5CF.xml" because it is being used by another process.
How would i implement a stream to write the xml, if thats the solution.
Here is the code where the problem occurs,
Dim TEMPPATH As String = "C:\EVENTSETTINGS\EVSET" & EVI & ".xml"
Dim CompleteTable As New DataSet
Dim TBLCOPY As New DataTable
TBLCOPY = TBL.Copy
Catch ex As Exception
Do While Not ex.Message.ToString = ""
Debug.Write("EXCEPTION GETEPP: " & ex.Message.ToString & vbNewLine)
Debug.Write(vbNewLine & "WRITING FILE: " & TEMPPATH & " TABLE COUNT: " & CompleteTable.Tables.Count & vbNewLine)
strTag = ""
500 Points because this is urgent! :D