Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: Socket Error # 0

www.cryer.info
Managed Newsgroup Archive

Re: Socket Error # 0

Subject:Re: Socket Error # 0
Posted by:"Stephan Jaschke" (ne..@stj-software.de)
Date:Fri, 23 Mar 2007 19:38:34

Remy Lebeau (TeamB) schrieb:
> "Stephan Jaschke" <news@stj-software.de> wrote in message
> news:4603937b$1@newsgroups.borland.com...
>
>> In my version (original Delphi 7.0, Indy 9.00.10) the code is
>
> Then you should upgrade to 9.0.50.

Oops. I feared that answer ;)

>> the diffrence is the call to GStack.WSGetLastError in my version
> which
>> implicit calls WSAGetLastError and gives obviously _not_ LastError
>> but 0 as no other winsock-call was involved.
>
> Actually, there is 2 winsock calls in DisconnectSocket() - shutdown()
> and closesocket().  So either one of them can be resetting
> WSAGetLastError() back to 0. before GStack.WSGetLastError() can be
> called.  That is probably why the GStack.LastError property was added
> in the first place.

Didn't saw that first.

Well - I just got a call:
"Don't touch it. No one will pay for the fix. Machines are reinstalled
and we'll wait for the next occurence (hoping this will never be :-))"

So I'll stop investigating this and concentrate on paid work.
A big thanks for your help - I'll keep your informations in mind.

Have a good life
Stephan
--
Logik ist die Kunst, zuversichtlich in die Irre zu gehen.

Stephan Jaschke - EDV-Beratung und Softwareentwicklung
Mail: support@stj-software.de - ICQ: 361511624

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive