Solved

Weird Errors with Winsock and Borland Builder TClientSocket

Posted on 2001-06-30
8
760 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
8 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
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
Comment Utility
------
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
Comment Utility
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
 
LVL 14

Expert Comment

by:AlexVirochovsky
Comment Utility
Check viruses in such computers.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 32

Expert Comment

by:jhance
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Question will be placed in PAQ.

ComTech
CS @ EE
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now