Przemek, thank You for the explanation and for hack suggestion!
Regards, Mitja recv() on error returns -1 not 0. > >> nLen = recv( m_hSocket, pRead, nLen, 0 ); >> hb_storclen( pRead, nLen, 2 ); > ^^^^ > And in such case error appears here. > As short hackt o resolve the problem you can add hust after recv() > if( nLen < 0 ) nLen = 0; _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour