Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • 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)
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
VirtueTech
Asked:
VirtueTech
  • 2
1 Solution
 
PriyeshCommented:
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
 
VirtueTechAuthor Commented:
Yeah I do use CRecordset to connect to a MSSQL DB. Should I worry about memory leaks/corruption with this thread?
0
 
PriyeshCommented:
>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
 
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,
DeepuAbrahamK
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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