Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Today I run into a strange error.
When I start my program without Visual studio 2010 Express, start to running, but the gui not appear, and inpossible do stop it in task managger.
But if I run it in Visual studio, it work without any problem.
It do it with my all c# program,even what I write years before, but not any other program.
Tried to check, if a virus do it, but it can't find anything.
Operting system is Windows 7
It can be antivirus who stops execution of your application. Try to turn off it.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I wrote a simple program. A command prompt window comes up in the background when starting my program. How can I fix it?
Go into your project properties (right click on project)
Properties => Application => Output type
Set it to "Windows Application" instead of "Console Application".
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
All of UWP Samples I have tried to compile and run do not work. They always freeze on splash screen and stay like that. And after shutting them down, I can't run them again because it says System is using the .exe process.
Have you tried to turn off your Anti-Virus?
In my case, Avast sometimes blocks my executable, so I have to disable it.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to run my .exe file for a console app I made. When I go to /bin/debug/~~~.exe it won't run. However, it still manages to build from inside Visual Studio.
How can I get this to work?
I have experienced the same situation, my exe is just a simple Hello World console. After a lot of trials and errors, I figured out it is just my antivirus (Avast Free Antivirus) pausing it. Whitelisting my exe solves the problem. Hope it is your case too.
Its my antivirus which is blocking my application. After uninstalling everything is working properly.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am working on a C# console application. It mostly just hosts a soap service, and listens for messages coming in to process. However, even when no soap messages are received, all 6 cores on my laptop are being heavily used. From a code walk through I can't see what is causing it.
Is there are any debug tools in Visual Studio that can help pinpoint where CPU is being eaten up.
You can use the Profiler that is built into Visual Studio.
For Visual Studio 2013, select the menu ANALYZE / Performance and Diagnostics
Use the Performance Wizard.
It will show you hot spots in your code (where the most CPU cycles are being burned).
Note that you may need to launch Visual Studio as Administrator for proper profiling.
NOTE:
You can download stand-alone profiling tools for VS 2010 from Microsoft. See https://stackoverflow.com/a/11197203/141172
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
When I try to attach the w3wp.exe process in order to debug asp.net process, a pop-up alerts me that this "can potentially harm your computer".
I just wonder why.
Are you by any chance NOT running visual studio as Administrator? Visual studio needs to be running as Administrator to attach to the ASP.NET worker process without popping up that warning.
EDIT: Looks like this issue is answered in this SO post
IIRC, some older trojans/viruses used debug attachment as a mean to hook into other programs/services.
Nowadays you get a warning. Focus here is not on the words 'harm your computer'. It asks you to check if the process listed is what you'd expect. Imagine that popping asking to debug chrome.exe or skype.exe when you was just idling. That would make me freak out for sure.