Re: Run-time error 9 while processing winsock received data

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 01/07/05


Date: Fri, 7 Jan 2005 10:54:32 -0800

I'm sure developers on your team will make a lot of this information,
but what do you want from a public newsgroup? About the only
advice I can think for you is to use Ethereal (or another sniffer) to
inspect your network traffic... Ah, that and the suggestion to dump
the OCX and write plain WinSock2 code... (assuming you used
C++ that is, otherwise the third suggestion is to dump VB at least
for the networking part)

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"TxITGuy" <txitguy.nospam@earthlink.net> wrote in message 
news:C3B72625-80AC-475A-891A-560C6FB95A72@microsoft.com...
>I have an infrequent, but very troubling problem with an internet enabled
> application we recently released.  We used Winsock.ocx as the core for
> rolling our own HTTP client, and tested using our own web server.
>
> We were on a tight production schedule, so the beta phase only lasted 
> about
> 3 weeks.  During that time though we tested it one more computers than I 
> can
> count ... fixed a few bugs, and had in running flawlessly on all of them.
>
> About two weeks after we released the app, we started getting call after
> call complaining of a "run-time error 9: subscript out of range" when 
> logging
> in to our application.  Most of these were fixed by a reboot, but some are
> persistent.
>
> I wrote the HTTP code for the chunked-transfer method, which is what our
> server uses when sending dynamically generated content (ASP pages).  I do
> have plans to implement the entire protocol, but time-constraints on the
> project did not allow this initially.
>
> A brief test here suggested that a change in transmission method would
> produce a Type Mismatch error, rather than subscript our-of-range, but I'm
> not ruling that out yet.  Other possibilities I have considered include a 
> RAM
> cache in WinSock that sometimes returns out-of-date information, proxy 
> caches
> on the ISP that ignore the "do-not-cache" headers, and an unreported
> communcation error truncating the data stream.
>
> Truncated data, by the way, is a confirmed cause of an RTE 9 ... we
> encountered it in beta because of some server errors (all of those are 
> fixed
> now).  All reported comm errors have a handler to cleanly terminate the 
> login
> process, so if the data stream is getting clipped, it is happening 
> someplace
> that Winsock cannot detect to raise an error event.
>
> I am still gathering more information on this error, but any suggestions 
> as
> to cause would be greatly appreciated.
>
> Thanks,
> Ben 


Relevant Pages

  • RE: Run-Time error 9 while processing Winsock.ocx received data
    ... I have learned some additional information about the run-time error 9, ... The data returned by the server for our application is arranged like an old ... Winsock 1.2 to "get ahead" of the calling program if some system issue is ... > communcation error truncating the data stream. ...
    (microsoft.public.vb.controls.internet)
  • RE: Mail for one particular recipient keeps getting stuck in the outgoing queue
    ... Suggestion 1: Checking Recipient Policies ... and then click Recipient Policies. ... Click the E-Mail Addresses tab. ... Servers\ServerName\Protocols\SMTP\Default SMTP virtual server. ...
    (microsoft.public.exchange.admin)
  • Re: Networking is Messed Up
    ... Both our office network and my home network are simple "workgroups", ... Use a proxy server for your LAN. ... You may have winsock problem, WinSock is damaged or corrupt after disconnect ...
    (microsoft.public.windowsxp.network_web)
  • Re: Mailing problem - update what?
    ... Turned out to be your suggestion 6 that seemed to do the ... the SMTP server that I'm specifying is the company Exchange ... On the Access tab, click the Relay ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Internet timeouts on workstations
    ... The client systems in question are all brand new installs of Windows XP ... > Suggestion - Clean Settings in Internet Explorer: ... On the SBS Server and one of the problematic client ... Ethernet adapter Server Local Area Connection: ...
    (microsoft.public.windows.server.sbs)

Loading