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

Threaded View

  1. #4
    Join Date
    May 2000
    Location
    Scotland, Livingston.
    Posts
    728

    Re: Threads have sequential behavior

    Try removing the
    Code:
    CloseHandle(phThread[0]);
    and
    Code:
    phThread[0] = NULL;
    from the thread functions themselves, you will need the handles in the main thread to get the return code and for the WaitForMultipleObjects call.

    Also the thread functions should be defined as returning a DWORD (you can just return 0).

    See if that fixes your problem.
    Last edited by Dave McLelland; August 11th, 2005 at 03:22 PM.
    Dave Mclelland.

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