--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
> 
> (3) But if I go for creating a struct by calling e.g.
> 
>   ppsv->CallPlugin("class", "definestruct", pszBuf, 3,
>     "StructForRecord", "field1 field2", 30);
> 
> the handle it returns has never been put in a variable, never
> will be, never accessible to user. Assuming it's more efficient
> to use a struct to create many instances, what will cause the
> struct to get removed when it's no longer needed? Will it cease
> to exist as soon as last instance on which it's based ceases to
> exist?

You can get a new handle to it any time with

class.get("StructForRecord")

or redefine "StructForRecord" to a different layout and reuse the memory as 
best I understand.

To actually release the memory currently requires brute force: class.unload

Regards,
Sheri

Reply via email to