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

Re: When can you call HTHost_killPipe?

From: Raffaele Sena <raff@nuvomedia.com>
Date: Tue, 8 Jun 1999 17:31:08 -0700
Message-ID: <01c101beb20f$5e390000$52c0a8c0@nuvomedia.com>
To: "Michael Saunders" <michael@amtec.com>, <www-lib@w3.org>
> My questions are:
> 1) From which callbacks should I be calling HTHost_killPipe to cancel
>    a request that will not causing the library to perform a segmentation
>    fault? Timer callbacks, progress callbacks, error callbacks, etc?
> 2) What steps should I perform to kill requests and still have the
>    library in a sane state for subsequent requests at a later time?
    I don't know how to answer your questions, but one thing that seem
    to work for me in a similar situation is the following:

    1) When I click <CANCEL> in my dialog box, I simply call
    2) From the main code, after returning from HTEventList_loop() I can
        and terminate the library. I think that HTNet_killAll() also cancel
        all the pending requests (it's called by HTProfile_delete, but I need
        to call it before, in order to properly release all the anchors).

Hope this helps,

-- Raffaele
Received on Tuesday, 8 June 1999 20:30:20 UTC

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