I started playing with the tDOM "createNodeCmd" and "appendFromScript"
idiom in AOLserver, and I think it (may?) be a cause for memory leakage.

In particular, the [dom createNodeCmd] thing creates an actual Tcl proc.
AOLserver, at the end of request processing, doesn't "clean up" new
procs that were defined as part of the request.  This would include
these new procs defined using [dom createNodeCmd].

Another scary side effect of this:

    % dom createNodeCmd elementNode string
    ::string

    % string is integer abcd
    called outside domNode context

OK, so where did the real Tcl [string] proc go?  Poof, gone.  This is
also a neat side-effect:

    % rename ::string {}
    % string is integer abcd
    self-referential recursion in "unknown" for command "string"

Huh?  Weird.

Anyhow -- I guess this a big caveat or warning to everyone using tDOM
with AOLserver if you're using [dom createNodeCmd] -- this way is
fraught with peril.  Use at your own risk.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.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.

Reply via email to