Questions tagged [vshost.exe]

32 questions
59
votes
4 answers

I can't kill MyApp.vshost.exe

I've managed to get myself in a state where I've no instances of devenv running, but still a MyApp.vshost.exe in the background (no visible windows or consoles). I've tried TaskManager, ProcessExplorer and command line (taskkill /F /IM…
Benjol
  • 63,995
  • 54
  • 186
  • 268
16
votes
3 answers

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…
baal80
  • 267
  • 1
  • 3
  • 6
14
votes
9 answers

vshost32.exe has stopped working when I call the ShowDialog method of OpenFileDialog

I've a c# application, I'm doing a final test of it. But now, a function which has worked everytimes until now doesn't work anymore! I've a Button, when I click on it I want to browse files, I see the "Open file" windows, and an half second after, I…
J4N
  • 19,480
  • 39
  • 187
  • 340
11
votes
2 answers

vshost.exe not terminating properly in Visual Studio 2015

I am in charge of testing VS 2015 and how it works with our current applications for my employer. We currently use VS 2013 for everything we have, so I know there are no issues there. The problem I am having is that it appears the vshost.exe isn't…
Carson
  • 1,169
  • 13
  • 36
8
votes
4 answers

memory leak 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…
Meidan Alon
  • 3,074
  • 7
  • 45
  • 63
7
votes
1 answer

Disabling Visual Studio hosting process on Visual Studio Community 2017

I am trying to disable output of a vshost.exe file to my release folder. There is a similar question here and here. This Microsoft doc instruction for 2015, and followed the 2017 rc link and found this They all mention the Enable the Visual Studio…
Padhraic
  • 5,112
  • 4
  • 30
  • 39
5
votes
3 answers

Why is my method calling Assembly.GetCallingAssembly() not JIT-inlined?

I'm trying to craft a short C# snippet that would illustrate change of Assembly.GetCallingAssembly() behavior because of JIT-inlining outlined in MSDN. Here's my code so far: class Program { static void Main(string[] args) { …
sharptooth
  • 167,383
  • 100
  • 513
  • 979
3
votes
1 answer

How to keep vshost.exe for debugging but stop spurious launching

There is a similar question here on SO, but I have a fairly small solution and I do launch the debugger from within VS. My understanding is that using the Enable the Visual Studio Hosting process checkbox has several advantages so I'd like to keep…
Tod
  • 8,192
  • 5
  • 52
  • 93
3
votes
1 answer

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…
Bill
  • 335
  • 1
  • 4
  • 21
2
votes
2 answers

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…
sooprise
  • 22,657
  • 67
  • 188
  • 276
2
votes
1 answer

What is needed to run a WPF app?

I copied my .exe, plus its vshost.exe, plus the sqlite database file it uses, but it won't run outside of Visual Studio. There's no err msg when I 2-click my .exe - it just won't run. What is it lacking?
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
1 answer

Visual Studio Professional 2012 svhost32.exe error running hello world

I am new to Microsoft Visual Studio and have just installed Visual Studio 2012 on my computer. I am trying to run a simple hello world console application. This is my code: using System; namespace HelloWorld { class Program { …
Efink
  • 31
  • 3
1
vote
0 answers

.NET console application exit code wrong in visual studio debugger output window when using return from within Main

I've read about different ways to set the exit code for a .NET console application here and here and at other places. And they all result in the correct value in the %ERRORLEVEL% after executing the console app from within a cmd.exe (or in…
wonko realtime
  • 545
  • 9
  • 26
1
vote
2 answers

Installing Visual Studio 2015 breaks 2010's functionality

This isn't the first time I've had this problem. Unfortunately, I guess I didn't learn my lesson the first time. I was assuming it was another issue. I'm on a fresh install of Windows 7 Enterprise. I installed 2010 and SP1. Everything was fine. I…
Keith
  • 1,331
  • 2
  • 13
  • 18
1
vote
0 answers

MAF AddIn process exits when running outside vshost

I have a MAF AddIn so i can show a Windows Forms application from WPF app. It all works perfectly when run from Visual Studio in vshost but when I run the app outside VS then most of the time the AddIn process exits: public FrameworkElement…
1
2 3