开发者

Stop EIdWinsockStubError, WSACancelBlockingCall error appearing when closing Internet Explorer

开发者 https://www.devze.com 2023-02-19 17:54 出处:网络
I have an ASP.NET application where one of the pages hosts a 3rd party ActiveX control.A condition can sometimes occur with the ActiveX control that causes the following error message to be displayed

I have an ASP.NET application where one of the pages hosts a 3rd party ActiveX control. A condition can sometimes occur with the ActiveX control that causes the following error message to be displayed in a Windows dialog box when Internet Explorer is closed:

Exception EIdWinsockStubError in module CADVIE~1.OCX at 0029A808.

Error on call to Winsock2 library function WSACancelBlockingCall: 
Either the application has not called WSAStartup, or WSAStartup failed.

Without any intervention from the suppli开发者_如何学Cers of the ActiveX control can I suppress this message.


EIdWinsockStubError is an exception thrown by the Indy library when it fails to dynamically load a WinSock function using LoadLibrary() and GetProcAddress(). In this case, something in the OCX is calling Indy's WSACancelBlockingCall() stub after Indy has already unloaded WinSock from memory. Indy itself does not use WSACancelBlockingCall() at all, so it has to be a bug in the OCX's own code.

0

精彩评论

暂无评论...
验证码 换一张
取 消