You may write your own tool, which will use "debugging" features. This tool must
- Start new process suspended
- Attach to created process as debugger
- Process debugging events, as I remember, you need LOAD_DLL_DEBUG_EVENT
Note, MS VS starts multiple processes:
Note 5 processes. It is unclear as to which one would be throwing the error. Start with the... - Microsoft Visual Studio process.