W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

Deleting anchors

From: <Jim_Ravan@avid.com>
Date: Thu, 17 Dec 1998 14:07:33 -0500
To: www-lib@w3.org
Message-ID: <852566DD.0069103D.00@amm02.avid.com>

I must have a misconception about anchors. I have one "read something"
routine and one "write something" routine. Each of them creates one anchor.
The reader creates an anchor to reqpresent the desination, and the writer
creates a tmpAnchor to represent the source buffer. Both routines attempt
to delete the anchors when they exit. This turns out to be a bad idea,
because the next time libwww does *anything* with anchors, it crashes. When
should I delete anchors? I'm really just trying to be a good memory citizen
and not create memory leaks. Programmers get very nervous when they see
code create an object and then find that the routine exits before deleting

I'd very much prefer to delete the anchor in the routine that creates it.

Received on Thursday, 17 December 1998 14:17:06 UTC

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