--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> Bruce, any chance to make it possible to return a handle, i.e., to maintain 
> the linkage in a handle used in quit(handle) ?
> 
> e.g.:
> 
> local xvec = funcTest()
> win.debug("xvec exists:", xVec.exists, "xVec[0]:",xVec[0])
> quit
> 
> Function funcTest()
> local bVec = vec.create(50)
> bVec[0]=23
> quit(bVec)

I thought I fixed this in 4.7 but I guess not or possibly I broke it since 
then.  It requires special processing in a very delicate part of the PowerPro 
code so it is unlikely I will try to fix.

As a workaround, I think if you make bVec static, it works.  Note that the 
storage associated with the vector will  be freed when xvec is freed.  I think 
it also works if you call funcTest more than once, but not tested.
>


Reply via email to