• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Thread named "Win32 thread" in my app - What is it?

Hello everyone,

I have a VC++ application that I've written. I have written the program to use three threads that I have named so that in the OUTPUT window I can view the name of the thread when it exits with its return code.

The problem I have is I keep seeing an unknown thread that exits every 1 minute or so. Like so:
-   The thread 'Win32 Thread' (0x3448) has exited with code 0 (0x0)
-   The thread 'Win32 Thread' (0x3448) has exited with code 1 (0x1)

Is this just the main window app running?  What are these threads? How can I find them?


-- V
  • 2
1 Solution
If you are connecting to a database, this could be related to some background threads your database client is running. Also think about any other special processing you do in your application using third party controls etc.
VirtueTechAuthor Commented:
Yeah I do use CRecordset to connect to a MSSQL DB. Should I worry about memory leaks/corruption with this thread?
>Should I worry about memory leaks/corruption with this thread?
Normally no. If you are using this with CDatabase in an ODBC scenario, I have used this extensively in multiple small projects and never seem to have any memory leak related issues. Please feel free to fill in if anybody knows of particular scenarios.
If you are worried about the thread's origin, to be sure you might want to disable the database code if it's easy and check if the thread is still there polling every minute.

Deepu AbrahamR & D Engineering ManagerCommented:
Just comment out your threads and run the app and see whether you are still getting the same results? This way you could isolate the problem.

Best Regards,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now