OriginalBugID: 3409 Bug
OS: Windows NT
compiled a static lib; Tcl/Tk library scripts are embedded in a C-file and
I set up an event handler in a server gui-application which should react on
incoming messages on a socket, concurrently to gui handling. The code looks
similar to this:
int handle = accept(my_socket,0,0);
Tcl_Channel channel = Tcl_MakeTcpClientChannel((ClientData) handle);
Tcl_CreateChannelHandler(channel, TK_READABLE, file_callback, (void*)
whenever input arrives at the socket, the function file_callback()
should be called.
This works fine under Linux, used to work in the past (< 8.1 ?) but does
reliably work under Windows. It DOES work, if I add printf()'s for each
message, so I suspect a timing problem.
It's not certain that this is failing quite as mentioned,
and may be due to TCP delay.
-- 11/10/1999 hobbs
Another reports that this crept into Tcl between 8.0.4 and 8.2:
Michael Kirkham wrote:
> occuring in the older version of our software. This leads me to
> believe that the problem was introduced between Tcl 8.0.4 and 8.2.1.
> The dropped events problem is a little bit intermittent, so I am not
> 100% certain, but I have not myself been able to observe the dropped
> events problem with any version of our software built with Tcl 8.0.4
> but have quite often with versions built with Tcl 8.2.2 (including a
> version previously built with Tcl 8.0.4).
-- 12/30/1999 hobbs