"WhiteWizard" <(E-Mail Removed)> wrote
> Is there a way to make this socket
> "unbusy" without rebooting the machine?
Terminating the process that owns the socket will kill the socket.
The magic tool for sockets is "netstat", and it's part of the standard
Windows Install. This will show you all sockets (-a), their state, and the
process that owns the socket (-o).
> Same thing for a file. Application crashes or whatever, and a filestream
> never releases, is there a way to "unbusy" the file without rebooting?
Same answer as for a socket. Kill the owning process.To find out which
process owns a file, you need to hit the SysInternals web page and download
one of their tools (FileMon?)
> We are actually running into both of these problems and are trying to
> figure
> out how to gracefully recover from these problems.
I suspect your problems is really something else - I do ALOT of socket and
file work and almost never come across these issues unless it's due to a
mistake on my end. Can you post some sample code?
--
Chris Mullins, MCSD.Net, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins