in reply to Killing some processes unsing system taskkill crashes Perl.exe

Without looking too close at your code (and without trying to run it) , I suspect its because of sharing STDIN/STDOUT/STDERR

So first thing I would try is to create detached processes without inheriting any handles with system_detached

If the popup you get is standard win32 error dialog, you can silence it on most NT5+ systems with https://metacpan.org/module/Win32API::File#SetErrorMode  use Win32API::File(); Win32API::File::SetErrorMode(2);

  • Comment on Re: Killing some processes unsing system taskkill crashes Perl.exe
  • Download Code

Replies are listed 'Best First'.
Re^2: Killing some processes unsing system taskkill crashes Perl.exe
by tarunmudgal4u (Sexton) on Sep 27, 2013 at 06:48 UTC

    Hi, thanks for your help. I created new process and tweak my code accordingly and it worked.. thanks again