Deleting anchors

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
it.

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

regards,
-jim

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