VS test project crashes the IDE when using interop

  • Thread starter Thread starter Peter Morris
  • Start date Start date
P

Peter Morris

I wonder if anyone might know why some code that creates a COM object (which
merely reads contents of a file) would work fine within a console app yet
crash the test thread in VS...

VSTestHost.exe has stopped working

Any help would be appreciated, otherwise we are going to have to run part of
our tests in a console app :-(


Regards
 
Peter said:
I wonder if anyone might know why some code that creates a COM object
(which merely reads contents of a file) would work fine within a console
app yet crash the test thread in VS...

VSTestHost.exe has stopped working

Any help would be appreciated, otherwise we are going to have to run
part of our tests in a console app :-(
Go to project properties -> Debug and uncheck "Enable the Visual Studio
hosting process".

The hosting process is intended to speed up debugging (and make it slightly
more reliable) but it does change the environment, which may have unintended
consequences. Luckily, it's entirely optional.
 
Back
Top