On Fri, 06 Jul 2001 10:57:07 BST, Mike Guy wrote: >Gurusamy Sarathy <gsar@ActiveState.com> wrote >> This is not thread-safe. I suggest allocating the space for it on >> the savestack, either via SSNEW() or using a newSVpv()+SAVEFREESV() >> combo. > >Would a new mortalised SV do the trick instead? The lifetimes may be different, so it is risky. Using the savestack guarantees it will stay live for exactly the right duration. Sarathy gsar@ActiveState.comThread Previous