Re: g_spawn and files left locked on windows.

2009-04-28 Thread Tor Lillqvist
> The process had finished, and that was why I was puzzled. But had the process perhaps started some child process that had (unintentionally) inherited the file handle, and that child process was still running? Please install Process Explorer from sysinternals.com and use its "Find>Find Handle or

Re: g_spawn and files left locked on windows.

2009-04-28 Thread Richard Shann
does, in fact work pefectly on both platforms, so my problem lay elsewhere. Richard > (actually i don't know if this have the 'locking effect'), and you may > interest using a GIOChannel for file operations. > > --- ajhwb > > > --- richard.sh...@virgin.net wrot

Re: g_spawn and files left locked on windows.

2009-04-28 Thread Ardhan Madras
close() your file before exit (actually i don't know if this have the 'locking effect'), and you may interest using a GIOChannel for file operations. --- ajhwb --- richard.sh...@virgin.net wrote: From: Richard Shann To: gtk-app-devel-list@gnome.org Subject: Re: g_spawn and fi

Re: g_spawn and files left locked on windows.

2009-04-28 Thread Richard Shann
On Mon, 2009-04-27 at 12:52 +0300, Tor Lillqvist wrote: > > My application invokes the lilypond program using the g_spawn... > > functions. This works fine on linux, but on windows the files created by > > lilypond are left locked when lilypond has exited. > > That sounds very odd and in fact impo

Re: g_spawn and files left locked on windows.

2009-04-27 Thread Tor Lillqvist
> My application invokes the lilypond program using the g_spawn... > functions. This works fine on linux, but on windows the files created by > lilypond are left locked when lilypond has exited. That sounds very odd and in fact impossible. Are you confusing file protection with locking? Please fi

g_spawn and files left locked on windows.

2009-04-27 Thread Richard Shann
My application invokes the lilypond program using the g_spawn... functions. This works fine on linux, but on windows the files created by lilypond are left locked when lilypond has exited. I can't re-use them on the next invocation, for example. Should I be exploring this as a possible bug in lilyp