http://www.perlmonks.org?node_id=631288

PhilHibbs has asked for the wisdom of the Perl Monks concerning the following question:

I'm downloading a sequence of files using the "get.bat" that comes with ActiveState Perl 5.8.1 (build 807, probably getting a bit out of date now). My perl script generates the command line parameters and uses system() to run the get.bat command. Everything goes fine for 20 or 30 files then it just stops with a 0 byte file and when I do Ctrl-C I get a dialog box "perl.exe - Application Error" - "The instruction at "0x3400d894" referenced memory at "0x000000c". etc."

After Ctrl-C, I can't delete the file, it's being used. The Command Prompt box behaves a little oddly, sometimes I press Enter and I don't get the C:\> prompt, I have to press Enter again to get it. If I press Ctrl-C again, the Command Prompt goes back to normal and I can delete the file.

If I re-run my script to pick up where it left off, it hangs again on the same file. Reboot the PC, and everything's fine.

Any ideas?