FbxExporter seemingly not releasing file handles

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to test my code that uses the FBX SDK. Since the SDK is closed source, I can't effectively spoof the file i/o that backs it, and I'm not keen on faking the entire surface area of the SDK that I use. So I figure I need to deal with actually creating files on the hard drive, and then reading them back in with my test, and deleting them as soon as the tests complete. This is non-ideal, but it's better than any alternative I've been able to come up with.
But this is presenting a problem. At the end of the test, when I go to delete the files, I can't because "The process cannot access the file because it is being used by another process". This is despite the fact that I've already called Destroy() on the FbxExporter, and then also called Destroy() on the FbxManager. The files remain "in use" until the process ends.
This would imply that the FbxExporter is somehow losing the handles, instead of cleaning them up properly. Is there anything I can do about this?