What's about the _cancellation HANDLE (i guess) in thread.h?
If i start and end threads in a loop, every time the HANDLE-counter in Win/NT Taskmanager increases. A Bounds-Checker reports a Resource-Leak.
If i use CloseHandle(_cancellation) in ~Thread() in thread.h
it seems to be ok.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What's about the _cancellation HANDLE (i guess) in thread.h?
If i start and end threads in a loop, every time the HANDLE-counter in Win/NT Taskmanager increases. A Bounds-Checker reports a Resource-Leak.
If i use CloseHandle(_cancellation) in ~Thread() in thread.h
it seems to be ok.
You are correct, and it has been added to Thread::Terminate this morning, which is where the CloseHandle for the thread itself occurs.