Why there is a appname.vshost.exe file generated for the release version of my application? I might add that I'm using an external dll library and some unsafe code.
What's even more interesting, my application launched from Release folder does not work correctly (it works OK when launched from Debug folder).
It's bit hard to explain - feel free to ask if you need more info.
For anyone else having the issue, it is probably because "Enable the Visual Studio hosting process" checkbox (in Project Properties -> "Debug" Tab) is checked under your Release configuration.
You probably want it only checked under your Debug configuration so