On 2007.02.28, John Buckman <[EMAIL PROTECTED]> wrote: > Therefore, I highly recommend adding a > $doc delete > to manually delete any tdom objects you create.
At AOL, the idiomatic code for handling tDOM often looks like this: set doc [dom parse $xml] if {[catch { # ... do stuff with $doc } err]} { ns_log error $err } $doc delete You have to "guarantee" that the [$doc delete] happens--if an uncaught Tcl error stops execution and the [$doc delete] doesn't happen, you leak. -- Dossy -- Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.