By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,873 Members | 1,040 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,873 IT Pros & Developers. It's quick & easy.

Sockets problem

P: n/a
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
Share this Question
Share on Google+
15 Replies


P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
"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

P: n/a
Cor
Hi Armin,

What did I said to Kudzu about forcefull I thouht?

(You are right)

:-)))

Cor
Nov 20 '05 #11

P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.