A third party library is causing a AccessViolationException everytime the library opens a certain file. I'm trying to iterate through thousands of files, so it would be useful to catch the exception, add the item to a list of files which aren't to be opened and continue. However, the Exception isn't caught by the catch(Exception e) block, nor by the specific catch(AccessViolationException ave) block.
In a comment to another question, John Saunders suggests that an AccessViolationException can be caught, but that one shouldn't do so.
What's a programmer to do?