Windows 10 launches extra thread when running an executable

Page 1 of 2 12 LastLast

  1. Posts : 4
    Windows 10
       #1

    Windows 10 launches extra thread when running an executable


    Hi there. I observed that when creating an executable with Visual Studio, Windows 10 will launch one (sometimes even two) extra thread. This happens even for the simplest program:

    int main()
    {
    return 0;
    }

    If you break on return 0, Visual Studio will show two threads: the main thread, and an extra unknown one.

    Has anyone encountered this yet? Do you know the cause and if it should/will be fixed?

    Thanks.
      My Computer


  2. Posts : 3,257
    Windows 10 Pro
       #2

    catalincocis said:
    Hi there. I observed that when creating an executable with Visual Studio, Windows 10 will launch one (sometimes even two) extra thread. This happens even for the simplest program:

    int main()
    {
    return 0;
    }

    If you break on return 0, Visual Studio will show two threads: the main thread, and an extra unknown one.

    Has anyone encountered this yet? Do you know the cause and if it should/will be fixed?

    Thanks.
    What kind of program are you creating? That looks like C, are you sure you aren't creating a managed app by mistake?
      My Computer


  3. Posts : 22,740
    Windows 10 Home x64
       #3

    Mystere said:
    What kind of program are you creating? That looks like C, are you sure you aren't creating a managed app by mistake?
    You can create/test C/C++ in visual studio.. I use CodeBlocks.
      My Computer


  4. Posts : 16,623
    Windows 11 Pro X64
       #4

    Visual studio has bugs with build 10049



    https://www.tenforums.com/windows-10-news/5059-if-you-developer-microsoft-recommends-you-do-not-upgrade.html#post217406
      My Computers


  5. Posts : 4
    Windows 10
    Thread Starter
       #5

    Mystere said:
    What kind of program are you creating? That looks like C, are you sure you aren't creating a managed app by mistake?
    No, it's not a managed app. I created a C++ General Empty Project.
      My Computer


  6. Posts : 22,740
    Windows 10 Home x64
       #6

    Dude said:
    Visual studio has bugs with build 10049


    https://www.tenforums.com/windows-10-news/5059-if-you-developer-microsoft-recommends-you-do-not-upgrade.html#post217406

    Thanks for the information Doug.. good man!!
      My Computer


  7. Posts : 3,257
    Windows 10 Pro
       #7

    Dude said:
    Visual studio has bugs with build 10049

    https://www.tenforums.com/windows-10-news/5059-if-you-developer-microsoft-recommends-you-do-not-upgrade.html#post217406
    No, Visual Studio 2015 Has problems, there's no mention of Visual Studio 2013 or earlier.
      My Computer


  8. Posts : 16,623
    Windows 11 Pro X64
       #8

    Mystere said:
    No, Visual Studio 2015 Has problems, there's no mention of Visual Studio 2013 or earlier.


    True, but the op didn't mention his version
      My Computers


  9. Posts : 4
    Windows 10
    Thread Starter
       #9

    Dude said:
    True, but the op didn't mention his version
    I used Visual Studio 2008.
      My Computer


  10. Posts : 16,623
    Windows 11 Pro X64
       #10

    catalincocis said:
    I used Visual Studio 2008.
    And this is a preview OS....Give feedback to MS
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:52.
Find Us




Windows 10 Forums