472,356 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,356 software developers and data experts.

System.Net.Sockets.SocketException Error

Hi,

I have a VB.Net 2003 program that uses Indy to check if there are any
messages waiting on a POP mail server.

The program has been running fine for a few months, but last week
after Installing a network packet reading program called WireShark my
VB.Net program no longer runs and generates the following error :

An unhandled exception of type 'System.Net.Sockets.SocketException'
occurred in system.dll

Additional information: An operation on a socket could not be
performed because the system lacked sufficient buffer space or because
a queue was full

The line that generates this error is :

Dim POPSver As New Indy.Sockets.POP3
Since the program was working fine before I know that there is no
problem with my actual code.

I guess there must be some settings that WireShark may have changed,
can you suggest what I need to look at to see why I'm getting this
error message.

I've re-installed Indy but still get the error message
Regards

Steve.


- Steve Lowe
- E-Mail : NO************@usa.net
- Before Replying Remove .NO.SPAM
- UK Resident although my e-mail address is usa.net
Jan 15 '07 #1
2 4453
Steve!

What is the buffer you declared?

Need to know that because if you have a string builder of 256 chars & the
message exceeds that then you will get an insufficient buffer error, but
without seeing any code its not very easy to say where it is.

Provide more info if you want to get help

Newbie Coder
Jan 15 '07 #2
On Mon, 15 Jan 2007 12:50:23 -0000 "Newbie Coder"
<ne**********@pleasespamme.comwrote:
>Steve!

What is the buffer you declared?

Need to know that because if you have a string builder of 256 chars & the
message exceeds that then you will get an insufficient buffer error, but
without seeing any code its not very easy to say where it is.

Provide more info if you want to get help

Newbie Coder
Hi

Full code is below

Cheers,

Steve.
Imports Indy.Sockets
Imports Microsoft.Win32

Module Module1
Sub Main()

Dim POPSver As New Indy.Sockets.POP3
Dim Messages_On_Server As Integer
Dim Last_Time_Messages_On_Server As Integer = 0
Dim Last_Checked_At As Date = Now()
Dim Message_String As String

POPSver.Host = "pop.freeserve.net"


POPSver.Username = "********"
POPSver.Password = "********"

POPSver.Connect()
Try

Messages_On_Server = POPSver.CheckMessages
Last_Checked_At = Now()
POPSver.IOHandler.WriteLn("Quit")
POPSver.Disconnect()

Finally

End Try

Message_String = "At : "
Message_String = Message_String & Now() & " : "
Message_String = Message_String & Messages_On_Server
Message_String = Message_String & " Messages On Server."
MessageBox.Show(Message_String)
End Sub

End Module
- Steve Lowe
- E-Mail : NO************@usa.net
- Before Replying Remove .NO.SPAM
- UK Resident although my e-mail address is usa.net
Jan 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: paulbubach | last post by:
Hi @all, we have the following problem. We have developed an application with the Visual Studio.Net 2002 and the project runs on it. But now we have change the version of the Studio and now we...
4
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
3
by: David | last post by:
Hi, Ive been trying to work this out for the past 2 days now and im not getting anywhere fast. The problem i have is that i am using Asynchronous sockets to create a Socket Client library....
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
6
by: Aero | last post by:
Hi, My window application written in C# is throwing following exception while connecting to one FTP location The type initializer for System.Net.Sockets.Socket threw an exception This exe is...
3
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
4
by: sd1978 | last post by:
Hi, I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error: No connection could be made because the target...
5
by: PJ6 | last post by:
I can't figure this out. I have several references to style sheets and javascript files in my page header, the contents of which are served dynamically by my httphandler that serves *.res requests....
1
by: larspeter | last post by:
Hi all. I have a problem with TcpClient ... I am conneting to a server with TcpClient and returning the answer through a webservice. It actully all works fine. BUT if I make a lot of...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.