hi all,
I'm running into some horrible memory issues when using tcl/websh/apache
1.3 on freebsd.  I'm basically leaking 200MB of memory when iterating
through a list (basically a resultset from an ODBC query) that is 5MB in
size. I've tried upgrading to the 3.6.0b4 build of websh without much
luck. I do know that if I run the same code within a tcl shell, I do not
encounter this memory bloating issue, so I'm fairly confident that the
code is sound.  its similar to the following pseudo-code:

set data [list ]
foreach row $resultset \
{ 
        if {[lindex $row $x] eq "someConstraint"} \
        {
                lappend data $row
        }
}
unset $resultset

so, my question is:
1. how can I configure websh within apache to run in cgi-mode instead of
being integrated with the apache process? and if I do this, what are the
ramifications? I'm concerned that alot of the mime/cookie manipulation I
currently do will be rendered inoperable.
2. is it possible that there is a memory leak within websh? or can this
be explained in some way of how apache + tcl handle their memory
utilization? and if the latter, is this possible to be fixed?

if desired, I can provide a code samples that highlights this problem.

thx,
d.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to