Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] Error Login (IOException)
#1
How to solve ?

[SRC="csharp"] private void OnReceiveCallback(IAsyncResult result)
{
this._stream.EndRead(result);
byte[] data = new byte[(int)this._buffer.Length];
this._buffer.CopyTo(data, 0);
if ((int)data.Length >= 2)
{
this.handlePacket(this.decryptC(data, (int)data.Length));
}
(new Thread(new ThreadStart(this.read))).Start();
}

private void OnReceiveCallbackStatic(IAsyncResult result)
{
try
{
if (this._stream.EndRead(result) > 0)
{
byte num = this._buffer[0];
if (this._stream.DataAvailable)
{
this._buffer = new byte[num + 2];
this._stream.BeginRead(this._buffer, 0, num + 2, new AsyncCallback(this.OnReceiveCallback), result.AsyncState);
}
}
else
{
return;
}
}
catch (Exception exception)
{
Exception ex = exception;
CLogger instance = CLogger.getInstance();
object[] objArray = new object[] { DateTime.Now.ToString("[ HH.mm.ss | dd/MM/yyyy ] - ") + "[LC] : ", this._address, " Foi Fechado a Força: ", ex };
instance.Warning(string.Concat(objArray));
this.close();
}
}[/SRC]


http://imgur.com/a/mJB9E
Ответ
#2
There is a sense to copy a text from console, instead of screenshot. I don't speak portuguese.

In any case, the problem is in the wrong packet (or packets). Check the last sent packet.
Ответ
#3
Код:
[SRC="csharp"]private void OnReceiveCallbackStatic(IAsyncResult result)
        {
            int rs = 0;
            try
            {
                rs = _stream.EndRead(result);
                if (rs > 0)
                {
                    byte Length = _buffer[0];
                    if (_stream.DataAvailable)
                    {
                        _buffer = new byte[Length + 2];
                        _stream.BeginRead(_buffer, 0, Length + 2, new AsyncCallback(OnReceiveCallback), result.AsyncState);
                    }
                }
            }
            catch
            {
               // close();
            }
        }[/SRC]
Разработка Emu: PiercingBlow 90%, APB Reloaded 100%.
Самый действенный инструмент для самообучения - грабли.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  UDP3 POSITION ERROR Comandante9901 13 5,331 10-10-2018, 09:20 AM
Последний пост: ChunkyHunt
  help me please UDP3 Event Position Error bmzproject 14 3,950 05-24-2018, 05:31 AM
Последний пост: PISTOLA
  Help me please UDP3 error bc.log P2P_SUB_HEAD_USER bmzproject 0 1,374 03-25-2018, 06:04 PM
Последний пост: bmzproject
  help udp 3 error barte 1 1,563 02-03-2018, 06:35 PM
Последний пост: blowstom
  [Error PXSD] В чем проблема? немогу понять. Codex1to 0 1,817 12-17-2017, 07:49 PM
Последний пост: Codex1to
  Shop Tag error Yusqa 2 1,503 11-24-2017, 05:22 PM
Последний пост: Yusqa
  Help Login Type ManuelDev 4 2,010 09-01-2017, 02:56 PM
Последний пост: Avram_Lincoln
  i have this error clients connection TomCodder 2 1,730 08-07-2017, 06:43 PM
Последний пост: TomCodder
  error in java TomCodder 6 2,337 07-06-2017, 09:07 AM
Последний пост: TomCodder
  [HELP ME] Error ID yGGhz 0 935 12-23-2016, 07:37 AM
Последний пост: yGGhz

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)