Thanks John - so back to my original using globals such as the socket - it's still failing on the TCP NOTIFY.
Code:
This is the modeless dialog message pump.. Select Case CbMsg Case %WM_INITDIALOG Dialog Show State CbHndl, %SW_HIDE 'hide the window from flashing up SetTimer CbHndl, %IDT_TIMER2, 10000, ByVal %NULL hTcp = %INVALID_SOCKET hTcp = FreeFile Tcp Accept g_ntcpSocket As hTcp 'Debug shows #9 here Tcp Notify #hTcp, Accept Connect Recv Close To CbHndl As %TCP_HTML ' Tcp Notify #hTcp, Recv Close To CbHndl As %TCP_HTML 'xxxxxxxxxxxxxxxxxx Never gets to this point: xxxxxxxxxxxxxxxxxxxxx Case %TCP_HTML Select Case Lo(Word, CbLParam) Case %FD_READ If hTcp <> %INVALID_SOCKET Then
Comment