I wrote: > Is it possible maybe: > GetSinLocal > > is making a winapi call and wsagetlasterror returned to zero..?
No that can't be it.. My writeln came before GetSinLocal :( tmpdbg:= synsock.Bind(FSocket, Sin); SockCheck(tmpdbg); writeln('DEBUG 1: ', tmpdbg); writeln('DEBUG 2: ', FLastError); GetSinLocal; But even so... what if GetSinLocal really did also set it back to zero, even if we fix the real problem if there is a real problem? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public