Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Weird Errors with Winsock and Borland Builder TClientSocket

Posted on 2001-06-30
8
Medium Priority
?
773 Views
Last Modified: 2012-06-21
Hello

I have created a few applications using Borland C++ Builder 5.0. I code on a Win 98 SE box running Winsock 2.2. I have no problems running my program.

Also, a lot of people who downloaded my programs have absolutely no problem running them. These programs use TClientSocket for http analysis (get a webpage and analyze it). However, quite a few people are unable to use my programs.

Although they use the identical servers, the identical urls, all they get is a bunch of Winsock Async 11001 DNS lookup failures, and Winsock 10049 (Socket already in use) errors. They are using the correct settings, its not a question of their settings.

I asked them to check their OS/dlls, they are also running Win98SE with Winsock 2.2. They are not running the program from behind a firewall which performs NAT. Other normal Winsock programs run fine.

Any idea WHY this could be happening ? Its very frustrating.

bluezen
0
Comment
Question by:bluezen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6240810
It could simply be possible that the DNS server your users are querying does not know (temporarily) how to resolve the URL. This happens from time to time with dialup providers, when either their zome files are not correctly updated or the DNS server is clogged up ...
0
 
LVL 1

Author Comment

by:bluezen
ID: 6241469
------
It could simply be possible that the DNS server your users are querying does not know (temporarily)
how to resolve the URL. This happens from time to time with dialup providers, when either their zome
files are not correctly updated or the DNS server is clogged up ...
------

Yes I thought of that. However, they get errors 10049 and 10061 too...which are pretty inappropriate. They get flooded with errors, even though they are able to visit the SAME site in their browser at that moment.

bluezen
0
 
LVL 86

Expert Comment

by:jkr
ID: 6241471
Well, a quick workaround would be to place an entry in the 'hosts' file (www.thedomain.com<tab>123.456.789.0)- if the error is remedied, you found the culprit...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6241804
Check viruses in such computers.
0
 
LVL 32

Expert Comment

by:jhance
ID: 6242167
So you are saying that the ONLY place you are seeing this is with WIN98SE and WINSOCK 2.2?  (Of course, WIN98SE comes with WINSOCK 2.2).  

I'd be interested in testing a Win95 system with WINSOCK 2.2 installed to see if you problem is specific to Win98 or to WINSOCK 2.2.  Yes, Windows NT4 and W2K have WINSOCK 2.2 but it appears to be a completely different implementation than the Win9x one.

Have you tried testing this yourself on a Win98SE system?  I've written many WINSOCK apps and have never seen a specific problem on this setup but I'm not very familiar with the Borland TClientSocket library.  
0
 
LVL 1

Author Comment

by:bluezen
ID: 6243362
jkr:
Well thats an obvious thing to try. I tried putting in an ip address instead of the hostname, to avoid dns lookup failures, and it still didnt work.

jhance:
Basically I run a Win98SE system myself and have no problems whatever...its running Winsock 2.2.

People with Win95 systems have the same problem even after installing the Winsock update for Win95.

People with Win98 and Winsock 2.2 have the same problems.

People with Win2k dont seem to have problems.

The 11001 errors cause the 10049 errors as the socket is attempted to be used though the error occurs (Im not trapping the 11001 error).

bluezen
0
 
LVL 11

Expert Comment

by:griessh
ID: 6820132
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to refund the points and PAQ at zero points since nobody had a solution for you.

The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner

0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 6837802
Question will be placed in PAQ.

ComTech
CS @ EE
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

596 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question