> 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, -- RaffaeleReceived on Tuesday, 8 June 1999 20:30:20 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT