[Tcl Java] possible memory.

2000-10-20 Thread Daniel Wickstrom
> "Dan" == Dan Wickstrom <[EMAIL PROTECTED]> writes: Dan> It appears that the splitList method is only called from Dan> within the setListFromAny method The setListFromAny method is Dan> then used in most of the TclList methods. It's not clear to Dan> me why the TclList obj

[Tcl Java] Re: possible memory.

2000-10-20 Thread Jiang Wu
You made a good catch here. Here is what I think is happening. This is a problem only when a pure Java TclObject is converted into a native C Tcl_Obj. Suppose we create a TclObject on a simple Java string "a b c" (TclString). (In your email, the TclObject is an ArrayObject, which is also a pure

[Tcl Java] Re: possible memory.

2000-10-20 Thread Mo DeJong
On Fri, 20 Oct 2000, Daniel Wickstrom wrote: > The TclList.getLength method converts indexListObj to a TclList object > which uses an underlying Tcl_Obj to hold the internal rep. At the end > of this case statement, it returns leaving indexListObj with no > references. The jvm garbage collects