jake
jake

Reputation: 1691

Why does Visual Studio show multiple threads even though my MFC app isn't multithreaded?

I have a single-threaded MFC SDI application. When I run it in Visual Studio, the output window shows 2 threads exiting instead of one. It does this for both debug and release builds. Why is this?

Upvotes: 1

Views: 113

Answers (1)

RichieHindle
RichieHindle

Reputation: 281435

Windows itself starts threads in order to perform work on behalf of your code. Other components like GDI+ and Sockets do the same thing. There's more to your process than just the code that you wrote!

Upvotes: 1

Related Questions