?
Solved

Winsock Error !

Posted on 1998-04-15
5
Medium Priority
?
658 Views
Last Modified: 2013-11-13
Please, explain this Error Number ..

             '10048'

How can I fix it ?
0
Comment
Question by:can9999
[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
5 Comments
 
LVL 2

Expert Comment

by:lortega
ID: 1461365
I need some explanation of how you get that error, but i found some reference about that code number.

WSAEADDRINUSE = 10048 = Address already in use

to help you i need more information...
0
 
LVL 2

Expert Comment

by:marti
ID: 1461366
On which line you are getting this error?
0
 
LVL 1

Author Comment

by:can9999
ID: 1461367
wsMail.RemoteHost = sPopServer
wsMail.RemotePort = "110"
wsMail.Protocol = sckTCPProtocol
wsMail.Connect
..

wsMail.Close

Above Code is executed every 1 min.

Above Code is OK when it runs in DevStdio, bytheway
if I make to exe file, and execute it , it occures 10048 error

I'd already known "Address already in use" ..

Thank U !
       
0
 
LVL 1

Author Comment

by:can9999
ID: 1461368
Perhaps, It will occure in "wsMail.Connect"

0
 
LVL 2

Accepted Solution

by:
woka earned 150 total points
ID: 1461369
The LocalPort property is set when you make the conect.  After you close the connection, and before you reopen it, you must set the LocalPort property to 0.  Actually, you just need to set it to 0 before connecting.  ie.

wsMail.LocalPort = 0
wsMail.Connect
...
wsMail.Close

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

764 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