473,408 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Sockets problem

So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd)
and everything was fine untill yesterday when the server crashed. So I did
a cold restart and staretd the server back up now it's throwing this stream
of errors right away. DOes anyone have any idea what they mean. I havn't
changed the source at all since it was working (which was for four days).

Unhandled Exception: System.TypeInitializationException: The type
initializer fo
r "System.Net.Sockets.Socket" threw an exception. --->
System.Net.Sockets.Socket
Exception: An operation on a socket could not be performed because the
system la
cked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily,
SocketType so
cketType, ProtocolType protocolType)
at PureIRCD.EndPoint..ctor() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\connectivity\endpoint.vb:line
380
at PureIRCD.PLine.init(Boolean silent) in C:\Documents and
Settings\Jameson.W
HITERABBIT\My Documents\Visual Studio
Projects\PureIRCD\memory\globals.vb:line 6
62
at PureIRCD.conf.InitLinks() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\memory\conf.vb:line 340
at PureIRCD.IRCd.load_irc() in C:\Documents and
Settings\Jameson.WHITERABBIT\
My Documents\Visual Studio Projects\PureIRCD\core\ircd.vb:line 98


Nov 20 '05 #1
15 2151
"mrpolitics" <mr********@cinci.rr.com> schrieb
So I'm working with PureIRCD
(http://sourceforge.net/projects/pure-ircd) and everything was fine
untill yesterday when the server crashed. So I did a cold restart
and staretd the server back up now it's throwing this stream of
errors right away. DOes anyone have any idea what they mean. I
havn't changed the source at all since it was working (which was for
four days).

[...]


Sorry that I ask, but where is the relation to this group?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Becauase it's written entirely in VB.net (if you coudlnt tell by the error
message) I'm working on using the server here at my campus but I can't seem
to get it back up.

I'm assuming it's a problem with the code.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
"mrpolitics" <mr********@cinci.rr.com> schrieb
So I'm working with PureIRCD
(http://sourceforge.net/projects/pure-ircd) and everything was fine
untill yesterday when the server crashed. So I did a cold restart
and staretd the server back up now it's throwing this stream of
errors right away. DOes anyone have any idea what they mean. I
havn't changed the source at all since it was working (which was for
four days).

[...]


Sorry that I ask, but where is the relation to this group?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
I think the problem is that it's trying to bind the port...

any info on why binding might cause a server to crash under winxp

"Armin Zingler" <az*******@freenet.de> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
"mrpolitics" <mr********@cinci.rr.com> schrieb
So I'm working with PureIRCD
(http://sourceforge.net/projects/pure-ircd) and everything was fine
untill yesterday when the server crashed. So I did a cold restart
and staretd the server back up now it's throwing this stream of
errors right away. DOes anyone have any idea what they mean. I
havn't changed the source at all since it was working (which was for
four days).

[...]


Sorry that I ask, but where is the relation to this group?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
It errors here saying An unhandled exception of type
'System.TypeInitializationException' occurred in system.dll

Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.:

Public Function init() As Integer

YL = GetYLine(cc)

If YL Is Nothing Then

'no such y-line

Return -1

End If

If Not IsIp(address) Then

Try

address = Net.Dns.Resolve(address).AddressList(0).ToString '<------ ERRORS
ON THIS LINE

Catch ex As Exception

Return -1

End Try

End If

End Function
Nov 20 '05 #5
"mrpolitics" <mr********@cinci.rr.com> schrieb
Becauase it's written entirely in VB.net (if you coudlnt tell by the
error message) I'm working on using the server here at my campus but
I can't seem to get it back up.

I'm assuming it's a problem with the code.

How could a server crash create a problem with the code? You wrote "I havn't
changed the source at all", so how can it be a source/VB.NET problem?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
I hate to say this but it's obvious. You havn't been programming long have
you?

If the server went down maybe it was a change with XP in which case maybe I
need to modify the code now to handle the new scenario, and possibly the old
one.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:##**************@TK2MSFTNGP11.phx.gbl...
"mrpolitics" <mr********@cinci.rr.com> schrieb
Becauase it's written entirely in VB.net (if you coudlnt tell by the
error message) I'm working on using the server here at my campus but
I can't seem to get it back up.

I'm assuming it's a problem with the code.

How could a server crash create a problem with the code? You wrote "I

havn't changed the source at all", so how can it be a source/VB.NET problem?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
"mrpolitics" <mr********@cinci.rr.com> schrieb
I hate to say this but it's obvious. You havn't been programming
long have you?

No, but I don't have a server.

SCNR
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #8
So really you shoudl have just said "I don't know squat about sockets in
dotnet"
insted of just acting like a child?

"Armin Zingler" <az*******@freenet.de> wrote in message
news:u0**************@TK2MSFTNGP11.phx.gbl...
"mrpolitics" <mr********@cinci.rr.com> schrieb
I hate to say this but it's obvious. You havn't been programming
long have you?

No, but I don't have a server.

SCNR
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #9
"mrpolitics" <mr********@cinci.rr.com> schrieb
So really you shoudl have just said "I don't know squat about sockets
in dotnet"
insted of just acting like a child?


What do you expect as an answer to your provocations?

People reading this group *might* be able to help you, but this is not the
criteria to post it here. The fact that you are *using* VB.NET is *not*
decisive for choosing this group. I also don't post my programming problems
to the WinXP group just because I'm *using* it and just because there
*might* be people who *could* help me there.

Maybe you should read the subject: "Sockets problem", right? VB.NET does not
know sockets. Sockets are a part of the .Net Framework. There are separate
groups for dealing with questions and problems about the Framework. This
means that the problem is langauge independent. It might also apply to C#
and other managed languages because they base upon the Framework.

I also did not ask for source code. Why? You said, you did not change the
source code. The only thing that happened was that your server crashed. To
me it is obvious that you should look for the problem somewhere else, not in
your source code because you did not change it.

That's why I still think: This is not a VB.NET language problem. Please turn
to a different group.

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #10
Cor
Hi Armin,

What did I said to Kudzu about forcefull I thouht?

(You are right)

:-)))

Cor
Nov 20 '05 #11
"Cor" <no*@non.com> wrote in news:uL**************@tk2msftngp13.phx.gbl:
What did I said to Kudzu about forcefull I thouht?


You've never seen me go off on people have you? :)
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 20 '05 #12
Cor
Hi Kudzu,

Now you saw it, I never said that about you.
(And also not about Armin, but when he does real not agry, than he is not
afraid to tell that )

:-))

Cor
Nov 20 '05 #13
On 2004-01-28, mrpolitics <mr********@cinci.rr.com> wrote:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd)
and everything was fine untill yesterday when the server crashed. So I did
a cold restart and staretd the server back up now it's throwing this stream
of errors right away. DOes anyone have any idea what they mean. I havn't
changed the source at all since it was working (which was for four days).

Unhandled Exception: System.TypeInitializationException: The type
initializer fo
r "System.Net.Sockets.Socket" threw an exception. --->
System.Net.Sockets.Socket
Exception: An operation on a socket could not be performed because the
system la
cked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily,
SocketType so
cketType, ProtocolType protocolType)
at PureIRCD.EndPoint..ctor() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\connectivity\endpoint.vb:line
380
at PureIRCD.PLine.init(Boolean silent) in C:\Documents and
Settings\Jameson.W
HITERABBIT\My Documents\Visual Studio
Projects\PureIRCD\memory\globals.vb:line 6
62
at PureIRCD.conf.InitLinks() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\memory\conf.vb:line 340
at PureIRCD.IRCd.load_irc() in C:\Documents and
Settings\Jameson.WHITERABBIT\
My Documents\Visual Studio Projects\PureIRCD\core\ircd.vb:line 98

Your error message indicates a lack of resources on the system when
trying to create a socket. Look on msdn from WSAENOBUFS (socket error
number 10055). Here is a quote:

WSAENOBUFS (10055) No buffer space available.

No buffer space available.
An operation on a socket could not be performed because the system
lacked sufficient buffer space or because a queue was full.

WinSock description: The WinSock implementation was unable to allocate
additional memory to accommodate the function request.

User suggestions: This error indicates a shortage of resources on your
system. It can occur if you're trying to run too many applications (of
any kind) simultaneously on your machine. If this tends to occur after
running certain applications for a while, it might be a symptom of an
application that doesn't return system resources (like memory) properly.
It may also indicate you are not closing the applications properly. If
it persists, exit Windows or reboot your machine to remedy the problem.
You can monitor available memory with Program Manager's "Help/About..."
command.

Basically you may have a memory leak. Are you managing your socket
resources correctly?

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Nearly every complex solution to a programming problem that I
have looked at carefully has turned out to be wrong.
-- Brent Welch
Nov 20 '05 #14
Armin... there is no specific group for socket problems. This is the group
for question on VB DOTNET, so I asked here. Why? Because I know VB DOTNET
so most importantly when I ask for help if someone replys with a source
suggestion I might be able to understand the solution easyer. Also it's
possible that my problem has been noticed by other VB DOTNET users in this
gorup and that perhaps the problemis a handicap with VB and its use of the
Framework. Also many people in this group know multiple languages esp. the
MVP's. Stick around longer kid you might learn something.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:#V**************@TK2MSFTNGP12.phx.gbl...
"mrpolitics" <mr********@cinci.rr.com> schrieb
So really you shoudl have just said "I don't know squat about sockets
in dotnet"
insted of just acting like a child?
What do you expect as an answer to your provocations?

People reading this group *might* be able to help you, but this is not the
criteria to post it here. The fact that you are *using* VB.NET is *not*
decisive for choosing this group. I also don't post my programming

problems to the WinXP group just because I'm *using* it and just because there
*might* be people who *could* help me there.

Maybe you should read the subject: "Sockets problem", right? VB.NET does not know sockets. Sockets are a part of the .Net Framework. There are separate
groups for dealing with questions and problems about the Framework. This
means that the problem is langauge independent. It might also apply to C#
and other managed languages because they base upon the Framework.

I also did not ask for source code. Why? You said, you did not change the
source code. The only thing that happened was that your server crashed. To
me it is obvious that you should look for the problem somewhere else, not in your source code because you did not change it.

That's why I still think: This is not a VB.NET language problem. Please turn to a different group.

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #15
Thanks for the advice I'll give it a look. I tried restarting the computer
and that didn't work, so I'm going to try killing as many processes as
possible next time.
"Tom Shelton" <to*@mtogden.com> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
On 2004-01-28, mrpolitics <mr********@cinci.rr.com> wrote:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd)
and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up now it's throwing this stream of errors right away. DOes anyone have any idea what they mean. I havn't changed the source at all since it was working (which was for four days).
Unhandled Exception: System.TypeInitializationException: The type
initializer fo
r "System.Net.Sockets.Socket" threw an exception. --->
System.Net.Sockets.Socket
Exception: An operation on a socket could not be performed because the
system la
cked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily,
SocketType so
cketType, ProtocolType protocolType)
at PureIRCD.EndPoint..ctor() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\connectivity\endpoint.vb:line 380
at PureIRCD.PLine.init(Boolean silent) in C:\Documents and
Settings\Jameson.W
HITERABBIT\My Documents\Visual Studio
Projects\PureIRCD\memory\globals.vb:line 6
62
at PureIRCD.conf.InitLinks() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\memory\conf.vb:line 340
at PureIRCD.IRCd.load_irc() in C:\Documents and
Settings\Jameson.WHITERABBIT\
My Documents\Visual Studio Projects\PureIRCD\core\ircd.vb:line 98

Your error message indicates a lack of resources on the system when
trying to create a socket. Look on msdn from WSAENOBUFS (socket error
number 10055). Here is a quote:

WSAENOBUFS (10055) No buffer space available.

No buffer space available.
An operation on a socket could not be performed because the system
lacked sufficient buffer space or because a queue was full.

WinSock description: The WinSock implementation was unable to allocate
additional memory to accommodate the function request.

User suggestions: This error indicates a shortage of resources on your
system. It can occur if you're trying to run too many applications (of
any kind) simultaneously on your machine. If this tends to occur after
running certain applications for a while, it might be a symptom of an
application that doesn't return system resources (like memory) properly.
It may also indicate you are not closing the applications properly. If
it persists, exit Windows or reboot your machine to remedy the problem.
You can monitor available memory with Program Manager's "Help/About..."
command.

Basically you may have a memory leak. Are you managing your socket
resources correctly?

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Nearly every complex solution to a programming problem that I
have looked at carefully has turned out to be wrong.
-- Brent Welch

Nov 20 '05 #16

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

Similar topics

4
by: Dr.Kadzija | last post by:
i have a client-server application. client and server should communicate via tcp sockets. ok, so i use Sockets, PrintWriter and BufferedReader. the problem is that: both client and server will send...
2
by: Tero Saarni | last post by:
Hi, I have several threads communicating with each other using events stored in Queues. Threads block on Queue.get() until somebody publishes an event in thread's event queue. I need to add...
0
by: Gonçalo Rodrigues | last post by:
Hi, I have a problem with threads and sockets. I'll try to describe the problem in words with pseudo-code. I've been working on a few classes to make it easier to work with threads. This...
1
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and establishes itself on port 9900. It then polls for...
0
by: mrpolitics | last post by:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd) and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up...
14
by: jack | last post by:
At this link I have two c# projects, one is a client, the other is a server. Just point the ip address of the client at the server http://www.slip-angle.com/hosted/bug/ The server does...
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...
5
by: Dan Ritchie | last post by:
I've got a client/server app that I used to send large amounts of data via UDP to the client. We use it in various scenarios, one of which includes rendering a media file on the client as it is...
0
by: rossabri | last post by:
This topic has been addressed in limited detail in other threads: "sockets don't play nice with new style classes :(" May 14 2005....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.