Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Anonymous Monk
on Sep 12, 2011 at 15:26 UTC ( [id://925495]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://925495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-24 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found