|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Dec 2005
Posts: 26
|
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 ); } } |
|
|
|
|
|
#3 (permalink) |
|
Newbie
Join Date: Dec 2005
Posts: 26
|
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|