Chromatic <[EMAIL PROTECTED]> wrote:
> On Tue, 2004-05-04 at 00:48, Leopold Toetsch wrote:

>> Yes, the code didn't handle this case where we are creating nested
>> structures, which are chained by pointers. Should be fixed now, i.e. the
>> test succeeds now.

> Thanks, that does make the test pass here.

Welcome.

> Now for the case when applying a layout to an UnManagedStruct created
> and returned from a C function, will this overwrite nested structs and
> struct pointers?

An UnManagedStruct layout doesn't have it's own memory. It's always
external. So when you *get* foo->bar->baz from NCI, the inner or both
structs are unmanaged (depending on who owns the struct).

Should work. And there is a test for it IIRC.

leo

Reply via email to