I wrote a VisualBasic6 program. When compiled, it gets a "Win32.Autorun.sp" error. The program reads text data from about 140 input files, summarizes the data, and writes one output text file as it's reading the input files. SpyBot halts the execution after about 100 of the 140 files have been read. This occurs after about one second of execution time. In an effort to determine which input file was causing the error, I inserted a 50 milliseconds pause after each input file was read. Now, the error occurs after about 20 files have been read. I've varied the pause time from 10 ms to 1000 ms. The failure seems to occur after about one second of execution time, regardless of the length of the pause between files.

When I run the program from the VB6 editor (IDC?), the program runs to completion without error.