W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: cleaning up HostTable

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 31 Mar 1999 12:26:12 -0500
Message-Id: <>
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
>The main application can call the module again and reuse it. So, if the
>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.



Henrik Frystyk Nielsen,
World Wide Web Consortium
Received on Wednesday, 31 March 1999 12:26:17 UTC

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