- From: Henrik Frystyk Nielsen <frystyk@w3.org>
- Date: Tue, 13 Oct 1998 15:57:36 -0400
- To: Mike Bennett <mbennett@netcom.com>, www-lib@w3.org
At 11:19 10/13/98 -0700, Mike Bennett wrote: >I've found a leak of HTStream's as allocated from HTTPStatus_new() which >I'd like to solicit advice about the correct manner to address. I expect >I might be doing something wrong in my use of libw3 so I'd appreciate >any help along these lines. > >I'm writing a driver that will, for purposes of this mail, rerequest >the same document some parameterized number of times. To do this, >I use the HTNet_addAfter callback and call HTLoadAnchor() when >a request is finished. I use the standard HTEventList_loop dispatch >loop from my main() routine. Are you reusing the request object? This may cause problems - the best is to create a new request object for every request. The streams should normally be freed (I think) in that case. Have you had a look at the repeated load sample program http://www.w3.org/Library/Examples/multichunk.c Does this do what you want? Henrik -- Henrik Frystyk Nielsen, World Wide Web Consortium http://www.w3.org/People/Frystyk
Received on Tuesday, 13 October 1998 15:57:42 UTC