Re: Indy 9 Error

Giganews Newsgroups
Subject: Re: Indy 9 Error
Posted by:  Jim (nospam@please.com)
Date: Wed, 4 May 2005

Unfortunately I do not have a solution for you however
I have been experiencing a problem that might be related:

My debug stack looks something like this:

120 00c5de10 77f45275 00000000 00c5de3c 00c5de28
ntdll!KiUserExceptionDispatcher+0xe
121 00c5e174 77f45275 00000000 00c5e1a0 00c5e18c
ntdll!KiUserExceptionDispatcher+0xe
122 00c5e4d8 77f45275 00000000 00c5e504 00c5e4f0
ntdll!KiUserExceptionDispatcher+0xe
123 00c5e83c 77f45275 00000000 00c5e868 00c5e854
ntdll!KiUserExceptionDispatcher+0xe
124 00c5eba0 77f45275 00000000 00c5ebcc 00c5ebb8
ntdll!KiUserExceptionDispatcher+0xe
125 00c5ef04 77f45275 00000000 00c5ef30 00c5ef1c
ntdll!KiUserExceptionDispatcher+0xe
126 00c5f268 77f45275 00000000 00c5f294 00c5f280
ntdll!KiUserExceptionDispatcher+0xe
127 00c5f5cc 77f45275 00000000 00c5f614 00c5f5e4
ntdll!KiUserExceptionDispatcher+0xe
128 00c5f934 406d5be2 0eedfade 00000001 00000007
ntdll!KiUserExceptionDispatcher+0xe
129 00c5f98c 406d4dea 406d7afb 00c5f9ac 40005f9c
indy70!Idwinsock2EIdWS2StubError$bctr$qqrx17SystemAnsiStringui+0xef6
12a 00c5f9a4 400062ec 00c5fa18 400060db 00c5f9c4
indy70!Idwinsock2EIdWS2StubError$bctr$qqrx17SystemAnsiStringui+0xfe
12b 00c5f9c4 4000676e 00c5fa24 00c5fa14 4007666c
rtl70!SystemTryFinallyExit$qqrv+0x1d8
12c 00c5fa24 77f47dc9 01f30000 00000000 00000000 rtl70!SystemHalt0$qqrv+0x5e
12d 00c5fa44 77f535b5 01f39d98 01f30000 00000000
ntdll!RtlReleasePebLock+0x2b
With the exeception being thrown as:

4/14/2005 10:35:34 AM
    Error Msg: Error on call Winsock2 library function socket: Either the
application has not called WSAStartup, or WSAStartup failed
    Error Code: 0
    Type: Delphi Exception
    Source: NovusEmail_BO_u.SendEmail
    Addl: Intended Recipient: <hidden>
    User/PC: on COMPROD05

I am running a COM+ Application on Windows 2003 Server. Using Delphi 7.0 and
the version of Indy that ships with Delphi. I run into this problem when
trying to send an email via the SMTP modules but I believe that it all boils
down to the Winsock handling in Indy.

I posted this information a while ago in the SMTP group on this server but
received no response, hopefully somebody else will have an idea on this.

-Jim

> exception class : EIdWS2StubError
> exception message : Error on call Winsock2 library function WSACleanup:
> Either the application has not called WSAStartup, or WSAStartup failed.
> thread $880 (TthdDataConnectorTransmission):
> 00605c11 Indy60.bpl IdWinSock2 4219 WS2Call
> 00604e19 Indy60.bpl IdWinSock2 3967 WS2Stub_WSACleanup
> 006082c1 Indy60.bpl IdStackWindows 580 Finalization
> 40006266 rtl60.bpl System FinalizeUnits

Replies

In response to

Indy 9 Error posted by Mark D. Lincoln on Mon, 2 May 2005