- From: Raffaele Sena <raff@nuvomedia.com>
- Date: Tue, 8 Jun 1999 17:31:08 -0700
- 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
HTEventList_stopLoop().
2) From the main code, after returning from HTEventList_loop() I can
cleanup
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