Menu

Missing CloseHandle in thread.h? (win32-tree)

2000-05-17
2000-05-17
  • Sascha Busse

    Sascha Busse - 2000-05-17

    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.

     
    • David Sugar

      David Sugar - 2000-05-17

      You are correct, and it has been added to Thread::Terminate this morning, which is where the CloseHandle for the thread itself occurs.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.