Re: [twsocket] UDP ReceiveFrom error

2007-09-13 Thread Lorenzo.Herrerias.external
Hello Wilfried, I can't explain why I didn't see it before! Now it works fine! Thank you a lot for your help. Lorenzo. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Wilfried Mestdagh Enviado el: jueves, 13 de septiembre de 2007 14:48 Para: ICS support mailin

Re: [twsocket] UDP ReceiveFrom error

2007-09-13 Thread Lorenzo.Herrerias.external
Hello Wilfried, thank you for your help. I've changed my code but the problem persists. Internally RecvFrom is Result := DoRecvFrom(FHSocket, Buffer^, BufferSize, 0, From, FromLen); if Result < 0 then FLastError := WSocket_Synchronized_WSAGetLastError else FReadCount :

[twsocket] UDP ReceiveFrom error

2007-09-13 Thread Lorenzo.Herrerias.external
Hi, I have two UDP listener sockets in a worker thread (I use a thread because is a DLL). When I receive any data in the OnDataAvailable, ReceiveFrom method call return -1 and OnDataAvailable is triggered in a infinite loop. The same code with Receive method works fine. What is wrong? Could be a

[twsocket] Handling my own windows messages

2006-09-04 Thread Lorenzo.Herrerias.external
Hello, my application creates a new thread by client connection and these threads communicate by custom Windows messages with others threads. Before, with ICS in the Execute() method i had: //create the message queue MSG msg; PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE); PostThread