W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

How to terminate the event loop in Windows

From: Raffaele Sena <raff@nuvomedia.com>
Date: Thu, 28 Jan 1999 11:59:09 -0800 (PST)
To: www-lib <www-lib@w3.org>
Message-ID: <Pine.LNX.4.05.9901281156020.5698-100000@localhost>

While testing an application both in Linux and Windows I noticed
that while on Linux it was correctly terminating after calling
HTEventList_stopLoop, on Windows I couldn't get out of the loop.

Well, there was a reason...

Here is a small patch,

-- Raffaele

Index: HTEvtLst.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTEvtLst.c,v
retrieving revision 2.29
diff -b -r2.29 HTEvtLst.c
758c758
<     while (GetMessage(&msg,0,0,0)) {
---
>     while (!HTEndLoop && GetMessage(&msg,0,0,0)) {


---------------------------------------------
Raffaele Sena
Senior Software Engineer ( "THE" Linux Guy :)
NuvoMedia, Inc.
310 Villa Street
Mt. View, CA 94041
Main:   +1.650.314.1200
Direct: +1.650.314.1255
Fax:    +1.650.314.1201

mailto:raff@nuvomedia.com
http://www.rocket-ebook.com
Received on Thursday, 28 January 1999 15:00:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT