Hi all, I'm not a developer but do have to write the odd bit of code to automate output. I have written a script which uses an mxd which has 3 data frames with different basemaps and some textual information which serves as a template to produce a pdf. I have written a script (attached) which loops through the sites of interest zooms to the extent, adjusts the scale to a set scale and then populates the textual information including two tables by doing an intersection with a point and polygon feature class. It all works ok but tends to crash out in or around the 80th site that it hits. I thought at first it was a memory leak, hence all the del()'s but when I checked it out in the resource monitor I found memory consumption was low but the thread count is incrementing by 3 or 4 every time it loops. Anybody any ideas on why this might be happening or a workaround to fix.
Thanks in advance