--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > Does this make any sense?
> > 
> > if (length(st_offset_vec)) do
> >   st_offset_vec.destroy
> >   win.debug("length after release=",length(st_offset_vec))
> > endif
> > 
> > length after destoy or release is 7
> > 
> > Regards,
> > Sheri
> 

>ng the length of the string which holds the handle which
>represented the dead vector. Is that what you want? Note that
>vec.length should give an error after the destroy (unless you
>create a new vector with the same handle in between the destroy
>and the length).

It's a misnomer because it is not a vector handle, but a dll handle. I
was not destroying it (ever). Since the static variable had a
"length", it was never getting recreated. Apparently the reason it
always worked was because a sufficient number of elements (8) was
getting allocated the one and only time it got created in a session.
So I guess it wasn't wasting much memory. I believe the array it
deferences is freed and recreated by the regex plugin as needed and
the dll plugin just points its handle at the current array.

> st_offset_vec=st_offset_vec.destroy

After that, st_offset_vec == "OK" means "Dead" :)

Regards,
Sheri

Reply via email to