- From: Henrik Frystyk Nielsen <frystyk@w3.org>
- Date: Wed, 31 Mar 1999 12:26:12 -0500
- To: "Raffaele Sena" <raff@nuvomedia.com>
- Cc: www-lib@w3.org
At 18:13 3/25/99 -0800, you wrote: >As I said before, I'm using libwww in a somewhat strange way. Aren't we all ;) >I have a module that can be called to process HTML pages. This module >initialize the library, use it and then release it (by calling >HTLibTerminate). > >The main application can call the module again and reuse it. So, if the >HTLibTerminate >doesn't correctly clean up the global data structures (or at least leave >them in a >consistent state) libwww will crash at the next attempt. > >So, I'm not completely sure on how this happen (or better, why it does not >happen on every >page), but I got this crash when downloading a specific page multiple times. >I found out >the channels were deleted (HTLibTerminate calls HTChannel_deleteAll), but >the HTHost objects >referencing them were not cleaned up. So, I added an HTHost_deleteAll and >called it before >HTChannel_delete all. Maybe this is too much, but it works. Sounds like a good way to me - can I get you to send me the patch again as an attachment or the like as it got messed up by a mailer somewhere. Thanks Henrik -- Henrik Frystyk Nielsen, World Wide Web Consortium http://www.w3.org/People/Frystyk
Received on Wednesday, 31 March 1999 12:26:17 UTC