I have a somewhat long python script (run as a geoprocessing tool from Toolbox) and I am not getting any errors during or completion of the script execution and all outcome is correct. However, when shutting down ArcMap 10.1, I get a C++ Runtime Library Error that pops up immediately after it closes.
Is there anything common that would cause this? (not releasing references, database connections not closed, etc...) Or has anyone experienced this and what process you went through to uncover the offender?