Solved

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

Posted on 2007-04-02
4
304 Views
Last Modified: 2013-12-14
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)
or
-   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?

Thanks.

-- V
0
Comment
Question by:VirtueTech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
Priyesh earned 500 total points
ID: 18840096
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.
0
 

Author Comment

by:VirtueTech
ID: 18840530
Yeah I do use CRecordset to connect to a MSSQL DB. Should I worry about memory leaks/corruption with this thread?
0
 
LVL 9

Expert Comment

by:Priyesh
ID: 18840638
>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.

Priyesh
0
 
LVL 11

Expert Comment

by:DeepuAbrahamK
ID: 18846630
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,
DeepuAbrahamK
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question