![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 1
Rep Power: 0
![]() |
Thread Handles?
Hello,
I have an application that creates a thread to execute a ping function. The concept i think is pretty basic. Below is how I call the thread. with F_Main do begin p_MyPingThread := Ping_Thread.m_Create(True, ThreadSOBJ, Description, h_DriverWindowHandle, h_DriverFormHandle); p_MyPingThread.FreeOnTerminate := True; p_MyPingThread.Resume; end; So i create the thread and free it. When i look at my task manager i see the thread being created, then freed. However, the total handles keep increasing. Anyone that could explain to me why this would happen? Kind Regards Anton |
|
|
|
|
|
#2 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,203
Rep Power: 5
![]() |
The act of terminating a thread does not close it's handle.
According to the win32 help file .... Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|