W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

HTEventList_loop

From: <Jim_Ravan@avid.com>
Date: Thu, 17 Dec 1998 19:12:45 -0500
To: www-lib@w3.org
Message-ID: <852566DE.00012B1F.00@amm02.avid.com>


Hmmm, this *seems* to be a bug, but you implementors will know better than
I. The !WWW_WIN_ASYNC version of HTEventList_loop is coded as:

     do { <the event loop> } while (!HTEndLoop);

We just ran into a case where a user-established AFTER filter had called
HTEventList_stopLoop() *before* HTEventList_loop() had been called. In this
case, the program hung in the event loop infinitely. This is on a Mac using
CWGUSI for sockets. It seems that it would be more defensive to code the
event loop:

     while (!HTEndLoop) do { <the event loop> };

Yes? No?

regards,
-jim
Received on Thursday, 17 December 1998 19:14:49 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 17:59:26 EDT