in reply to Win32 limit to number of calls to system()?

There is a per process OS limit on the number of filehandles ... see FileCache/_setmaxstdio

It might also be a per-process-group limit

Use http://live.sysinternals.com/handle.exe or http://live.sysinternals.com/procexp.exe to examine the process details and open handles before hitting 64 and after

Maybe the program doesn't die, and keeps a lock open to some config file or something, thus blocking subsequent ones ...

  • Comment on Re: Win32 limit to number of calls to system()?

Replies are listed 'Best First'.
Re^2: Win32 limit to number of calls to system()?
by Limbic~Region (Chancellor) on Sep 12, 2011 at 15:38 UTC
    Anonymous Monk,
    That certainly seems plausible but it would mean shame on Windows for not actually releasing resources when the program is shut down (unless using alt-f4 is a bad way to close the program). Perhaps before I write all the code to keep the app open, I will try closing it through the X button.

    Cheers - L~R