I have several standalone scripts that create a list of shapefiles to process (or coverages in one of the scripts). Sometimes my script crashes after it processes three files, sometimes ten, sometimes with just one to go. In some cases, it's quite complex operations, but sometimes, it's just a simple arcpy.Union_analysis(inShp, outShp) or with CalculateField_management().
It seems totally random because I just delete the outputs before restarting my scripts and it may or may not work the next time. Eventually it works, sometimes on the first try, but other times, I could have to retry it 2 or 5 or 10 times.
Any ideas what could cause this? Should I clean or delete something from memory that could cause a crash?
Thanks!
