CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Aug 2008
    Posts
    21

    Re: Question for worker threads

    Quote Originally Posted by zerver View Post
    Hard to say, but CloseHandle is not needed with CWinThread - it is closed automatically if you use autodelete.
    And your use of events is superfluous. You can wait directly on the thread handle instead, but then you have to turn off autodelete.
    Thanks for your reply. zerver. Yes, I used many events and I think may be they are causing me this problem. I will try as you told me and post my outcomes and question if any.

    nankyu
    Last edited by nankyu; November 12th, 2008 at 08:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured