Windows 10: Very Slow Compiled Program Execution Time versus Execution Time in Visual Studio 2019 IDE

Discus and support Very Slow Compiled Program Execution Time versus Execution Time in Visual Studio 2019 IDE in Windows 10 BSOD Crashes and Debugging to solve the problem; I have a C# executable built in Visual Studio 2019 which runs 20 times faster with debugging F5 than without debuggingCTRL + F5 when run within Visual... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by PiusZaleski, Jan 15, 2020.

  1. Very Slow Compiled Program Execution Time versus Execution Time in Visual Studio 2019 IDE


    I have a C# executable built in Visual Studio 2019 which runs 20 times faster with debugging F5 than without debuggingCTRL + F5 when run within Visual Studio. This happens with both the Debug and Release build options. Running the executable from the command line also produces the 20X slower run time.


    That is not a typo above, I realize this is the opposite of what one would normally expect.


    Any thoughts as to possible causes or avenues of investigation are welcome.


    I am using the ILNumerics package for Matrix math operations, otherwise, pretty basic C# calculations nothing fancy.

    :)
     
    PiusZaleski, Jan 15, 2020
    #1
  2. Altheo Win User

    compiled programs in Visual Studio 2015 Community are invisible


    I have the same problem.
    I work with Visual Studio 2015, Windows 10.
    When I compile a C++ program, with Visual Studio, it doesn't work anymore. The .exe file generated stays opened in "system", and blocks the execution.
    The .exe files that I compiled a week ago work fine. But when I recompile the same code and it frozes.

    I'm not sure, but I suspect Windows 10 updates to be responsible...
     
    Altheo, Jan 15, 2020
    #2
  3. kspanakis Win User
    No exe can be executed


    Hello. I tried to execute an exe file created by the compilation of code in MS Visual studio 2015 but it doesn't work. Every time i try to execute it stucks. Specifically in command prompt, Ctrl+C doesn't work. Then I tried to compile the code in other apps. But the executable does't work with them either. What could be the problem?
     
    kspanakis, Jan 15, 2020
    #3
  4. heavyd Win User

    Very Slow Compiled Program Execution Time versus Execution Time in Visual Studio 2019 IDE

    Make visual studio solution files(sln) always executed as administrator

    Locate the devenv.exe executable on your hard drive. You can usually find it in the following places:

    Visual Studio 2013<br/>
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe

    Visual Studio 2015<br/>
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe

    Visual Studio 2017 <br/>
    C:\Program Files (x86)\Microsoft Visual Studio\2017\<SKU_TYPE>\Common7\IDE\devenv.exe

    Right click on the devenv.exe executable in Windows Explorer and select "Troubleshoot compatibility" and then select "Troubleshoot program." From the next screen select "The program requires additional permissions" and then complete the wizard.

    This will change your settings so that any time you try to run Visual Studio you will be running elevated.
     
    heavyd, Jan 15, 2020
    #4
Thema:

Very Slow Compiled Program Execution Time versus Execution Time in Visual Studio 2019 IDE

Loading...
  1. Very Slow Compiled Program Execution Time versus Execution Time in Visual Studio 2019 IDE - Similar Threads - Very Slow Compiled

  2. Visual Studio 2019

    in Windows 10 Gaming
    Visual Studio 2019: Hello, i have a question. I wanna ask if its safe to uninstall Microsoft Visual Studio because it is taking 2 gigs from my drive. I dont need it just yet and i just wanna know if i can unistall it safely from my pc.Thank you for understanding....
  3. Visual Studio 2019

    in Windows 10 Software and Apps
    Visual Studio 2019: Hello, i have a question. I wanna ask if its safe to uninstall Microsoft Visual Studio because it is taking 2 gigs from my drive. I dont need it just yet and i just wanna know if i can unistall it safely from my pc.Thank you for understanding....
  4. visual studio 2019

    in Windows 10 Installation and Upgrade
    visual studio 2019: How do i upload VS to a Server? I am trying to use VS as Expressions does not work anymore... I need help https://answers.microsoft.com/en-us/windows/forum/all/visual-studio-2019/3ed4af1c-0f49-47fb-96b2-2c298abab671
  5. Is there a program that executes commands at certain times (in a batch file)?

    in Windows 10 Customization
    Is there a program that executes commands at certain times (in a batch file)?: Hello, everyone, I have programmed a Minecraft server and have now set the computer to go on and off to certain pages. When it is on, the start file Per Autostart opens. But to close it I need the command /stop so the server saves. But because I want everything to be...
  6. Visual Studio 2019 Community - program crash

    in Windows 10 Software and Apps
    Visual Studio 2019 Community - program crash: I have a 3D graphics program written in VC++ MFC using OpenGL. I developed this some 20 years ago. Every time I moved to a new VS, I had some problem but I managed to fix the issues. Last time I ported to VS2015 a year ago and I fixed some x64 issue with OpenGL then. And it...
  7. Slow Loading and executing programs

    in Windows 10 BSOD Crashes and Debugging
    Slow Loading and executing programs: My pc began to slow down shortly after the update at the beginning of December 2019. It continued until yesterday when the system would not open a program or icon. I originally thought that my MS Office 2016 programs were corrupted since I could not get Outlook to open. I...
  8. visual studio 2019

    in Windows 10 Software and Apps
    visual studio 2019: while compiling i am getting unable to start program........... ........................................................ the system cant find the file specified https://answers.microsoft.com/en-us/windows/forum/all/visual-studio-2019/340212e7-3f09-417e-86c5-b1e23c3ba984
  9. Visual Studio compile problem

    in Windows 10 Network and Sharing
    Visual Studio compile problem: How do you fix a problem where the program cannot find the file for the project when compiling. The setup was default and should be found by Visual Studio, but I get an message box about this. There is no problem with the code, just can't seem to find the file. I can pull the...
  10. compiled programs in Visual Studio 2015 Community are invisible

    in Windows 10 Software and Apps
    compiled programs in Visual Studio 2015 Community are invisible: VS always freezes if I run application then I can see application run in task manager but I can't see window and I can't terminate this process. Programs compiled in Visual Studio 2015 which worked a week ago now won't work too- same problem. Other 3rd party programs works...