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

2010-03-25 Thread Ian
-Original Message- From: gtk-list-boun...@gnome.org [mailto:gtk-list-boun...@gnome.org] On Behalf Of Robert Pearce On Tue, 23 Mar 2010 18:08:05 -0700 you wrote: So only stdin/out/err are open and the cwd is not on the flash drive. What the heck else could be preventing Windows

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

2010-03-25 Thread Ian
-Original Message- From: Tor Lillqvist Sent: Wednesday, March 24, 2010 12:57 AM 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 OK, tried that. After saving files to a Temp folder on the

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

2010-03-24 Thread Tor Lillqvist
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

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

2010-03-24 Thread Robert Pearce
Hi Ian, On Tue, 23 Mar 2010 18:08:05 -0700 you wrote: So only stdin/out/err are open and the cwd is not on the flash drive. What the heck else could be preventing Windows from un-mounting it? Sadly it's probably some deep buried magic in Windows. The earlier post about working directories was

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

2010-03-24 Thread Jernej Simončič
On Tue, 23 Mar 2010 18:08:05 -0700, Ian Puleston wrote: So only stdin/out/err are open and the cwd is not on the flash drive. What the heck else could be preventing Windows from un-mounting it? Grab Process Explorer and use it's Find Handle or DLL function and just search for the drive letter

Can't unmount flash drive after GtkFileChooserDialog in Windows

2010-03-23 Thread Ian Puleston
Hi, I have a program that exports files to a USB flash drive which involves using a GtkFileChooserDialog created with GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER to browse to the flash drive (or a folder on it) and then writing the files. The problem is that in Windows, when all is done I cannot

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

2010-03-23 Thread Jernej Simončič
On Tue, 23 Mar 2010 16:42:34 -0700, Ian Puleston wrote: Is there anything I might be missing to tidy up after the GtkFileChooserDialog that might be causing this? I'm using GTK 2.16.6. This is just a guess, but it might have changed the working directory to your removable drive, and Windows

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

2010-03-23 Thread Ian Puleston
-Original Message- From: gtk-list-boun...@gnome.org [mailto:gtk-list-boun...@gnome.org] On Sent: Tuesday, March 23, 2010 4:48 PM On Tue, 23 Mar 2010 16:42:34 -0700, Ian Puleston wrote: Is there anything I might be missing to tidy up after the GtkFileChooserDialog that might be

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

2010-03-23 Thread Ian Puleston
-Original Message- From: Ian Puleston [mailto:i...@underpressuredivers.com] Is there anything I might be missing to tidy up after the GtkFileChooserDialog that might be causing this? I'm using GTK 2.16.6. I tried a hack to temporarily remove the call to the GtkFileChooserDialog and