W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Re: Getting out of HTEventList_loop()

From: Michael Saunders <michael@amtec.com>
Date: Wed, 09 Jun 1999 16:44:34 -0700
Message-ID: <375EFC62.5B4D7C9F@amtec.com>
To: gstreet@vninet.com, www-lib@w3.org
gstreet@oscar.penguinpowered.com wrote:
> I'm having trouble getting out of HTEventList_loop()....
> I've tried to integrate the sample POST application into my X windows program.
> I have a callback which calls libwww stuff (borrowed from main() of POST sample
> application)
> Everything works great until the POSt is finished.  terminate_handler is
> then called, and the program exits.  So, i removed the exit() call from
> the sample application code, but control never returns to my loop (i've
> tried return (1), return(0), etc. in the terminate_handler, but program
> control seems to stay in HTEventList_loop().  Is there something else
> I can put in the terminate handler that will say "exit libwww stuff and
> return to the calling function, without exiting the application?"
> I appreciate any help.  Thanks,
> Graham Street

Yes, you must call HTEventList_stopLoop() although it the event loop code
is a little buggy if there was an error.

"Customize Tecplot with the Add-On Developer's Kit,
ask me how."
Michael Saunders
Senior Programmer
Amtec Engineering, Inc.
13920 SE Eastgate Way, Suite 220
Bellevue WA  98005

Tel: 425.653.1200 Ext. 238
Fax: 425.653.9200
Web: http://www.amtec.com
Received on Wednesday, 9 June 1999 19:44:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:49 UTC