Re: Can't unmount flash drive after GtkFileChooserDialog in Windows



> fd 0 is open !!!!!!
> fd 1 is open !!!!!!
> fd 2 is open !!!!!!

That is a rather pointless exercise as "file descriptors" on Windows
aren't an operating system concept, as on Unix. In C code on Windows,
"file descriptors" are just indexes into tables in the C library.
There might even be several different C libraries (with overlapping
but unrelated file descriptor values) in use by a process at any time.
(That is, one C library, say msvcrt.dll, used by the main .exe,
another, say msvcr80.dll, used by one DLL, and a third DLL might be
using a static C library. Etc.)

Files opened with operating system calls don't have any file descriptors.

To see what files actually are open by a Windows process, you need to
use Windows-specific code. Or use existing tools like Process Explorer
from http://technet.microsoft.com/en-gb/sysinternals/bb896653.aspx .

--tml


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]