D 2024-03-31T15:49:13.106 J icomment As\sit\sstands,\sthere\sis\sanother\sproblem\swith\sthe\scurrent\simplementation.\sIf\srun\sin\swish,\sit\sfreezes\sthe\sGUI\sas\sthe\sidle\sevents\snever\sget\sto\srun.\sI\ssuspect\sthe\swrite\sevent\skeeps\sgetting\squeued\safter\san\sinterval\sof\sSYNTHETIC_EVENT_TIME\swhich\shappens\sto\sbe\s0\swhich\smeans\sthe\sevent\squeue\sis\snever\sdrained.\sTest\sio-44.6\swhich\stests\sthe\simplementation\snever\sactually\stests\sthat\sother\sevents\sare\snot\sblocked.\r\n\r\nThe\sattached\sscript\sillustrates\sthis.\sThis\sis\sessentially\sa\smodified\sversion\sof\sio-44.6.\r\n\r\nWith\stclsh\s8.6,\sthe\stime\sis\sprinted\severy\ssecond\r\n\r\n```\r\nc:\\src\\tcltk\\wip\\tcl\\tests>tclsh86t\s..\\tests\\refchan-async-test.tcl\r\n1711899031\r\n1711899032\r\n1711899033\r\n1711899034\r\n1711899035\r\n^C\r\n```\r\n\r\nWith\s9.0\showever,\safter\sthe\sinitial\sinvocation\sthe\stime\sis\snever\sprinted\r\n\r\n```\r\nc:\\src\\tcltk\\wip\\tcl\\tests>d:\\tcl\\90\\x64-debug\\bin\\tclsh90.exe\s..\\tests\\refchan-async-test.tcl\r\n1711899100\r\n^C\r\n```\r\n\r\nThe\sbranch\sapn-bug-de232b49f2\sworks\sproperly\r\n\r\n```\r\nc:\\src\\tcltk\\wip\\tcl\\tests>d:\\tcl\\wip\\x64-debug\\bin\\tclsh90.exe\s..\\tests\\refchan-async-test.tcl\r\n1711899197\r\n1711899198\r\n1711899199\r\n1711899200\r\n^C\r\n```\r\n\r\nNow\scould\sone\schange\sSYNTHETIC_EVENT_TIME\sto\ssomething\sother\sthan\s0?\sThe\scomment\sthere\ssays\s*Must\sbe\szero\sor\sbad\sthings\stend\sto\shappen*.\sCould\sit\spossibly\sdo\sthe\sequivalent\sof\s"after\sidle\safter\s0"?\sI\ssuspect\sthis\swill\shave\sthe\ssame\sundesirable\seffect\sas\schanging\sSYNTHETIC_EVENT_TIME\sand\sanyways\sfeels\slike\sa\spatch\sfor\sa\spatch\sfor\sfundamentally\sbroken\sdesign.\r\n\r\nThe\sabove\sillustrates\stclsh\sbut\sthe\ssame\seffect\sis\sseen\swith\swish.\r\n\r\n```\r\nd:\\tcl\\wip\\x64-debug\\bin\\wish90.exe\s..\\tests\\refchan-async-test.tcl\r\n```\r\n\r\npops\sup\sa\stext\swidget\sthat\scan\sbe\sedited.\sOn\sthe\sother\shand,\swith\sthe\sexisting\s9.0,\sthe\stext\swidget\sis\sshown\sbut\sno\scharacters\sare\sdisplayed\swhen\syou\stype\sand\sthe\sGUI\sappears\sfrozen.\r\n\r\nThis.\sPolling.\sBased.\sDesign.\sFor.\sEvents.\sIs.\sJust.\sPlain.\sWrong.\r\n\r\n/Ashok J login apnadkarni J mimetype text/x-markdown K de232b49f26da1c18e07513d4c7caa203cd27910 U apnadkarni Z 6ea266764e309c083be6c054259d43fa