P
perlesnews
While testing the use of performance counters, IOException(file exists)
is detected (see stack trace above). We are using Framework.net 1.1
The reason is that the temporary folder is plenty of temporary files. I
am quite sure almost all these files files were created by
PerformanceCounter use related calls.
If files are removed manually, the IOException does not happen.
It is expected that the creator of a temporary file is the reposnsible
to remove it.
My quesiton is: does Framerwork.Net "forget" to remove these files?
Why?
Thanks in advance,
ivan
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.Path.GetTempFileName()
at System.Diagnostics.PerformanceCounterLib.get_IniFilePath()
at System.Diagnostics.PerformanceCounterLib.CreateIniFile(String
categoryName, String categoryHelp, CounterCreationDataCollection
creationData, String[] languageIds)
at System.Diagnostics.PerformanceCounterLib.RegisterCategory(String
machineName, String categoryName, String categoryHelp,
CounterCreationDataCollection creationData)
at System.Diagnostics.PerformanceCounterCategory.Create(String
categoryName, String categoryHelp, CounterCreationDataCollection
counterData, String machineName, String localizedIniFilePath)
at System.Diagnostics.PerformanceCounterCategory.Create(String
categoryName, String categoryHelp, CounterCreationDataCollection
counterData)
is detected (see stack trace above). We are using Framework.net 1.1
The reason is that the temporary folder is plenty of temporary files. I
am quite sure almost all these files files were created by
PerformanceCounter use related calls.
If files are removed manually, the IOException does not happen.
It is expected that the creator of a temporary file is the reposnsible
to remove it.
My quesiton is: does Framerwork.Net "forget" to remove these files?
Why?
Thanks in advance,
ivan
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.Path.GetTempFileName()
at System.Diagnostics.PerformanceCounterLib.get_IniFilePath()
at System.Diagnostics.PerformanceCounterLib.CreateIniFile(String
categoryName, String categoryHelp, CounterCreationDataCollection
creationData, String[] languageIds)
at System.Diagnostics.PerformanceCounterLib.RegisterCategory(String
machineName, String categoryName, String categoryHelp,
CounterCreationDataCollection creationData)
at System.Diagnostics.PerformanceCounterCategory.Create(String
categoryName, String categoryHelp, CounterCreationDataCollection
counterData, String machineName, String localizedIniFilePath)
at System.Diagnostics.PerformanceCounterCategory.Create(String
categoryName, String categoryHelp, CounterCreationDataCollection
counterData)