Running python base tool a few times on the same machine gets errors

Discussion created by modybsystematics-co-il-esridist Employee on Aug 10, 2011
Latest reply on Aug 11, 2011 by hzhu
Hi all
I wrote a very simple python script that gets a big image and clip it to small tiles in to a target directory.
I add this python script into a toolbox so it can run using a wizard.
The tool typically runs for a few hours depend on the size of the source image.
When I run it only once on the machine it always works.
When I open two ArcMap's and run the tool twice on the same machine - each tool works on a different source image (img file on disk) and send the tiles to a different directory - sometimes after a while some clip commands fail - just bail out or try to clip the entire image (does not get the clip envelope).
When I run 3 tools on the same time it almost every time fail sometime during the execution (no immediately)

Does anybody have any idea what can cause this?
The only common object between the tools is the python script itself.