Discussion:
FILE.create never free the ressource
(too old to reply)
staub.jean-noel
2007-08-16 08:35:40 UTC
Permalink
the instruction file.create(path) never frees the ressource!!!
if you try

file create("c:\temp\ok.txt")
file.delete("c:\temp\ok.txt")
the second instruction throws an exection this file is use by an other
process!!!

use:
Dim sw As StreamWriter = File.CreateText("c:\temp\ok.txt")

sw.Close()

File.Delete("c:\temp\ok.txt")
Ralph
2007-08-16 12:15:53 UTC
Permalink
Post by staub.jean-noel
the instruction file.create(path) never frees the ressource!!!
if you try
file create("c:\temp\ok.txt")
file.delete("c:\temp\ok.txt")
the second instruction throws an exection this file is use by an other
process!!!
Dim sw As StreamWriter = File.CreateText("c:\temp\ok.txt")
sw.Close()
File.Delete("c:\temp\ok.txt")
Wrong group.
You can find complete list of managed newsgroup here:
http://msdn.microsoft.com/subscriptions/managednewsgroups/list.aspx
Loading...