Delphi Asynchronous Socket Error 10038
Contents |
Of... Categories 141.8K All Categories104.8K Programming Languages 6.4K Assembler Developer 1.9K Basic 39.9K C and C++ 4.3K C# 7.9K Delphi and Kylix 4 Haskell 9.6K
Delphi Asynchronous Socket Error 10061
Java 4.1K Pascal 1.3K Perl 2K PHP 524 Python 37 Ruby 4.4K VB.NET delphi asynchronous socket error 10053 1.6K VBA 20.8K Visual Basic 2.6K Game programming 312 Console programming 89 DirectX Game dev 1 Minecraft 110 Newbie
Asynchronous Socket Error 10060 Delphi
Game Programmers 2 Oculus Rift 9K Applications 1.8K Computer Graphics 732 Computer Hardware 3.5K Database & SQL 526 Electronics development 1.6K Matlab 628 Sound & Music 257 XML Development 3.3K Classifieds socket error codes linux 198 Co-operative Projects 189 For sale 190 FreeLance Software City 1.9K Jobs Available 601 Jobs Wanted 201 Wanted 2.9K Microsoft .NET 1.7K ASP.NET 1.1K .NET General 3.3K Miscellaneous 5 Join the Team 0 User Profiles 354 Comments on this site 62 Computer Emulators 2.1K General programming 187 New programming languages 613 Off topic board 177 Mobile & Wireless 51 Android 124 Palm Pilot 335 what is a socket error Multimedia 151 Demo programming 184 MP3 programming 6.9K Operating Systems & Platforms 0 Bash scripts 22 Cloud Computing 365 Embedded / RTOS 53 FreeBSD 1.7K LINUX programming 368 MS-DOS 0 Shell scripting 320 Windows CE & Pocket PC 4.1K Windows programming 906 Software Development 408 Algorithms 68 Object Orientation 89 Project Management 90 Quality & Testing 250 Security 7.6K WEB-Development 1.8K Active Server Pages 61 AJAX 2 Bootstrap Themes 55 CGI Development 19 ColdFusion 224 Flash development 1.4K HTML & WEB-Design 1.4K Internet Development 2.2K JavaScript 35 JQuery 290 WEB Servers 153 WEB-Services / SOAP delphi 2010 and tclientsocket problems Development Member Posts: 222 April 2010 in Delphi and Kylix dose anyone know if delphi 2010 has a bug with tclientsocket as i been trying to sort a socket app and everytime i got to connect to server it will not and i get Asynchronous socket error 10060 from client.anyone have any idears?[code] DM.VedosClientSocket.Address := '127.0.0.1'; DM.VedosClientSocket.Host := 'localhost'; DM.VedosClientSocket.Port := 6060; DM.VedosClientSocket.Active := True;[/code]thanksSlewis 0 · Share on Facebook Comments djjd47130 Member Posts: 7 August 2010 This happens when there is a problem communicating with the server,
a la Página... Herramientas Buscar en Tema Desplegado #1 28-05-2010 mcs Miembro Registrado: May 2007 Ubicación: Girona Posts: 229 Como evitar el Asynchronous socket error? Buenos días, Tengo una aplicación que se comunica con
How To Fix Socket Error
un dispositivo a través de sockets. Para la comunicación uso el TClientSocket. En general funciona socket error 10054 todo correctamente, a excepción de cuando hay algún problema de comunicación (dirección IP incorrecta, dispositivo apagado, timeout, etc). Todos estos problemas los puedo capturar.
Windows Socket Error 10013
Cuando ocurren, aviso al usuario mediante un mensaje, y procedo a cerrar la conexión del TClientSocket, con el método Close. Aparentemente se cierra el socket, pero unos segundos después, empiezan a aparecer (cada 5 o 10 segundos) ventanas con http://www.programmersheaven.com/discussion/415867/delphi-2010-and-tclientsocket-problems el mensaje "Asynchronous socket error 10060", error de Windows que indica que el socket ha hecho un timeout. Por tanto, no sé si es que realmente no se cierra el socket cuando se lo pido, o que lo enviado queda en alguna cola del Windows cómo pendiente. Y claro, es muy molesto que cuando fallan las comunicaciones salgan errores de Windows (y si no se cierra la aplicación, no se puede volver a comunicar). Y mi pregunta es: que https://www.clubdelphi.com/foros/showthread.php?t=68161 puedo hacer para evitar estos errores? El TClientSocket lo tengo configurado en "nonBlocking". Quizá mejor cambiar y usar algun componente de las Indy? Continuar con el TClientSocket pero usandolo en modo bloqueante? Cualquier ayuda/recomendación será bienvenida! Saludos, Marc Última edición por mcs fecha: 28-05-2010 a las 08:50:51. mcs Ver Perfil Encontrar Todos los Mensajes de mcs #2 28-05-2010 mcs Miembro Registrado: May 2007 Ubicación: Girona Posts: 229 Ya lo he solucionado. En el evento OnError del TClientSocket, si se pone la variable ErrorCode a 0 no se muestra ninguna ventana de error. En fin, imagino que si la ayuda del Delphi 2010 fuera un poco decente, no habría estado tanto tiempo con el maldito error... mcs Ver Perfil Encontrar Todos los Mensajes de mcs « Tema Anterior | Próximo Tema » Herramientas Mostrar Versión Imprimible Enviar por Correo Desplegado Mode Lineal Cambiar a Modo Hibrido Cambiar a Modo Hilado Buscar en Tema Búsqueda Avanzada Normas de Publicación no Puedes crear nuevos temas no Puedes responder a temas no Puedes adjuntar archivos no Puedes editar tus mensajes El código vB está habilitado Las caritas están habilitado Código [IMG] está habilitado Código HTML está deshabilitado Saltar a Foro User CP Mensajes Privados Suscripciones Quien Está en Línea Buscar en los Foros Foros Inicio Principal Noticias Conexión con bases de datos Internet Impresión OOP
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/3382707/getting-asynchronous-socket-error-10049-even-if-i-use-try-except developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up getting asynchronous socket error 10049 even if i use try..except up vote 3 down vote favorite when ever i run my program(outside the debugger/ide) i get error asynchronous socket error 10049, socket error am i not supposed to recieve a message dialoge : ''error''? see my code below begin try ClientSocket1.open; except showmessage('error'); end; end; what am i doing wrong? delphi sockets exception-handling try-finally tclientsock share|improve this question asked Aug 1 '10 at 16:09 Omair Iqbal 1,0601639 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted What you should do is handle the Error event of the TClientSocket, because that is where you will be able asynchronous socket error to capture your socket errors. The ErrorCode parameter is the one that will have the WinSock Error code If you want to silence the Error, you can set ErrorCode to 0, which will prevent the exception from being thrown, and after that you can identify what the error is and handle it the way you want it procedure TForm1.ClientSocket1Error(Sender: TObject; Socket: TCustomWinSocket; ErrorEvent: TErrorEvent; var ErrorCode: Integer); var error : Integer; begin error := ErrorCode; {prevent exception from being thrown} ErrorCode := 0; if error = 10049 then showmessage('asynchronous socket error'); . . . end; I hope this helps Gaetan Siry share|improve this answer answered Aug 1 '10 at 19:59 G-Man 3,600124575 thanks a heap.... –Omair Iqbal Aug 2 '10 at 6:13 add a comment| up vote -1 down vote The TClientsocket component (which is deprecated for a while already) uses the asynchronous communication model, so it is possible that the exception is not thrown in the Open method but in the message / event handling method which receives the incoming data. update: I can reproduce this with Delphi 6 and the given code, if I enter an invalid IP address like 1.2.3.4 To fix it I would move to a TCP/IP library like Indy or Ararat Synapse (both have a generic TCP client component). share|improve this answer edited Aug 1 '10 at 17:12 answered Aug 1 '10 at 17:00 mjn 23