vshost.exe

memory problem when calling unmanaged code from managed code in Windows 7

When I call an unmanaged C++ code from my C# code, I seem to have some kind of a memory leak. The C++ reads data from a file using ifstream.read, and writes it to a Vector. This happens only after upgrading to Windows 7, doesn't happen on Vista, but if I use a version of the native dll that was compiled on Vista, it doesn't change anyth...

Vshosts folder created after each F5 run

Every time I run the app it creates a vshosts folder in the bin\debug folder in the following format: [appname].vshost_[hh-mm-ss] for example: mCommAttempt.vshost_16-33-57` The folder is always empty and ofcourse the regular vshost exe file is in bin\debug as well. I'm using VS 2008 with C#. What is this, why is this happening?...

Execution difference between "App.exe" and "App.vshost.exe" with WndProc

I am attempting to adapt an application developed in VS 2008/C# that listens to another application's WM_ messages through the use of the Control.WndProc method. When the "app.exe" version is run, WM_USER messages are visible and processed; however when the "app.vshost.exe" version is run, these same messages are no longer visible to th...

Unable to load DLL 'foo.dll', but only when running through vhost

This is a variation on the old System.DllNotFoundException: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E). problem (where, of course, foo.dll is the name of an actual DLL). The strange part is that I only get this error when I "Run" in VS (2008 if that's relevant). That si...

vshost.exe file in Release folder?

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 - ...

Program.vshost.exe Error Preventing Running Program

I've been moving files around from my debug folder in an attempt to open the executable for my program from a different location. This seemed to have screwed things up, and I'd like to know how to fix them. The exact error reads as follows: "Visual Studio could not copy a support file to this location:\Program.vshost.exe'. Please ver...