Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 10-15-2007, 06:18 PM   #1 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 26
Default Help Plis

Hi at all!I have a problem at the server becouse any time the server expels the players and on the monitor appear the follow clause
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError& errorCode, AsyncCallback callback, Object state)
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at Server.Network.NetState.InternalBeginReceive() in E:\Server_ML\core\Server\Server\Server\Network\Net State.cs:line 121
at Server.Network.NetState.OnReceive(IAsyncResult asyncResult) in E:\Server_ML\core\Server\Server\Server\Network\Net State.cs:line 766


# d.C.09aa 21.33.38
System.Net.Sockets.SocketException: Connessione in corso interrotta forzatamente dall'host remoto
at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at Server.Network.NetState.Flush() in E:\Server_ML\core\Server\Server\Server\Network\Net State.cs:line 641

I also attach the lines that give error. if someone can help me I would be to him thankful thanks
private void InternalBeginReceive() {
m_AsyncState |= AsyncState.Pending;

[121]m_Socket.BeginReceive( m_RecvBuffer, 0, m_RecvBuffer.Length, SocketFlags.None, m_OnReceive, m_Socket );
}


public bool Flush() {
if ( m_Socket == null || !m_SendQueue.IsFlushReady ) {
return false;
}

SendQueue.Gram gram;

lock ( m_SendQueue ) {
gram = m_SendQueue.CheckFlushReady();
}

if ( gram != null ) {
try {
[641]m_Socket.BeginSend( gram.Buffer, 0, gram.Length, SocketFlags.None, m_OnSend, m_Socket );
return true;
} catch ( Exception ex ) {
TraceException( ex );
Dispose( false );
}
}

return false;
}


private void OnReceive( IAsyncResult asyncResult ) {
Socket s = (Socket)asyncResult.AsyncState;

try {
int byteCount = s.EndReceive( asyncResult );

if ( byteCount > 0 ) {
m_NextCheckActivity = DateTime.Now + TimeSpan.FromMinutes( 1.2 );

byte[] buffer = m_RecvBuffer;

if ( m_Encoder != null )
m_Encoder.DecodeIncomingPacket( this, ref buffer, ref byteCount );

lock ( m_Buffer )
m_Buffer.Enqueue( buffer, 0, byteCount );

m_MessagePump.OnReceive( this );

lock ( m_AsyncLock ) {
m_AsyncState &= ~AsyncState.Pending;

if ( ( m_AsyncState & AsyncState.Paused ) == 0 ) {
try {
[766]InternalBeginReceive();
} catch ( Exception ex ) {
TraceException( ex );
Dispose( false );
}
}
}
} else {
Dispose( false );
}
} catch {
Dispose( false );
}
}
tor112 is offline   Reply With Quote
Old 10-16-2007, 02:48 AM   #2 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

you are using a custom core?

you cant get help here for custom cores.
Murzin is offline   Reply With Quote
Old 10-17-2007, 07:39 AM   #3 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 26
Default Hello

Hello,
we use a custom core svn259 for "mondian legasi" and "istance corps", sometimes our server expels all the players on game, but don't crash.
the problem is described in my first post on the script that I have attached, the used scripts are the same that you have released on the forum
(to manage item, poison, mobil scripts).
Can you see our script on this link : <http://www.runuo.com/forums/custom-script-releases/81922-runuo-2-0-svn-osi-mondains-legacy.html>.
Can you help me to resolve this problem?
I in advance thank you.
Best regards.
tor112 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5