exporadicamente, uma exceção, que não sei bem se é de IO ou de socket, ocorre na minha aplicação
o treço do código onde ocorre este erro é o seguinte:
try
{
while (intLidos < TAMANHO_MENSAGEM_SOCKET)
intLidos += objStream->Read(byMensagem, intLidos, TAMANHO_MENSAGEM_SOCKET - intLidos);
}
catch (Exception * ex)
{
CEventViewer::GravarErro(String::Concat(S"Erro ao tentar ler socket do mensageiro PID: ",
System::Convert::ToString(currentProcess->Id),
S" Erro: ",
ex->ToString()),
NOME_APLICACAO, 101);
Thread:
leep(5000);
ConectaServico(intProcesso, intPortaServico, strComputerName, &objClient, &objStream,currentProcess);
}
a exeção ue ocorre é a seguinte.
Description:
The description for Event ID ( 100 ) in Source ( MDB ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.TcpListener.Start()
at MDB.Controle.Executar().
alguém poderia me ajudar???
obrigado.