I've got an API program that runs through a directory of about 10,000 parts, assemblies and drawings and does various things to them (open in Solidworks, lock references, re-orient to ISO, edit custom props, save).
Some of these documents have errors, and the odd one seems to lock up...