I made a program that opens an application, sleeps the thread for 500ms then takes a picture of the frame's handle. I do this to about 600 files. Oddly enough, every 40 or so files, the process.kill() doesnt work or something, because the application hangs, and the running files program is running, when it should have been killed, then my program crashes when it tries to start the process. On my slow laptop, it crashes every 60 or so, on my fast quadro, every 30 or so. What could cause this? I dont see how a procedure could be skipped; odd....
Thanks