Re: Problem with read from socket

2004-06-29 Thread maxence . bernard
I have found where is the problem : I have a read instruction which blocks : read from socket socket1 until empty You said that it didn't block, but for me, it always is waiting, and the program continues when I move the mouse or click on the stack. A bug ? Maxence BERNARD

Re: Problem with read from socket

2004-06-29 Thread Troy Rollins
On Jun 29, 2004, at 11:48 AM, Dar Scott wrote: I think most of the folks who do a lot of sockets scripting use 'with message', so those might be more robust and you may have to do that. The compiler allows 'until empty' to be optional in that case. Try both if need be. In my case, I use for

Problem with read from socket

2004-06-28 Thread maxence . bernard
Hello, I encounter a strange result in my program. I have a program like this : answer something read from socket socket1 for 2 answer something2 Sometimes, the something2 message box doesn't appear or 4-5 minutes later. That seems that the instruction read from socket does not finish or

Re: Problem with read from socket

2004-06-28 Thread Dar Scott
On Jun 28, 2004, at 1:38 PM, [EMAIL PROTECTED] wrote: I encounter a strange result in my program. I have a program like this : answer something read from socket socket1 for 2 answer something2 Sometimes, the something2 message box doesn't appear or 4-5 minutes later. What OS? What version of

Re: Problem with read from socket

2004-06-28 Thread maxence . bernard
On Jun 28, 2004, at 1:38 PM, [EMAIL PROTECTED] wrote: I encounter a strange result in my program. I have a program like this : answer something read from socket socket1 for 2 answer something2 Sometimes, the something2 message box doesn't appear or 4-5 minutes later. What OS? What

Re: Problem with read from socket

2004-06-28 Thread Dar Scott
On Jun 28, 2004, at 1:38 PM, [EMAIL PROTECTED] wrote: set the socketTimeoutInterval to 1000 From the Transcript Dictionary: As long as the action is still pending, the socketTimeout message is sent every time the socketTimeoutInterval elapses. For example, if the socketTimeoutInterval is 1000

Re: Problem with read from socket

2004-06-28 Thread maxence . bernard
On Jun 28, 2004, at 1:38 PM, [EMAIL PROTECTED] wrote: set the socketTimeoutInterval to 1000 From the Transcript Dictionary: As long as the action is still pending, the socketTimeout message is sent every time the socketTimeoutInterval elapses. For example, if the socketTimeoutInterval

Re: Problem with read from socket

2004-06-28 Thread Dar Scott
On Jun 28, 2004, at 2:24 PM, [EMAIL PROTECTED] wrote: Your script is waiting for two bytes. So, is there a way to stop this waiting, otherwise my application doesn't continue. How could I interrupt the read from socket instruction with the socketTimeout message ? First, I need to say that I