[chuck-dev] Threading problems w/ win98

Robin Davies rerdavies at rogers.com
Sun Aug 28 01:54:48 EDT 2005


The following patch corrects a defect that prevents chuck from receiving TCP
commands on Windows 98.

chuck_main.cpp
505c505,511
<         g_tid = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)otf_cb,
NULL, 0, 0);
---
>         // [rd] pThreadID parameter is not optional on lesser win9x.
>         DWORD dwThreadID;
>         g_tid = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)otf_cb,
NULL, 0, &dwThreadID);
>         if (g_tid == NULL)
>         {
>             fprintf( stderr, "[chuck]: cannot spawn tcp listener
thread\n");
>         }



More information about the chuck-dev mailing list