[omniORB] invalid warning while destroying compound DynAnys

Renzo Tomaselli renzo.tomaselli at tecnotp.it
Mon Nov 17 19:04:21 GMT 2003


Duncan,
    it's faster to tell you what happens from my debugger.
When a top level DynAny is finally destroyed, it calls
DynAnyConstrBase::onDispose(), which in turn invokes detach() on each
component. This methods simply sets pd_is_root = 1.
Then, when the component itself is destroyed, we get the warning.
I tracked this down while monitoring a DynStruct.
Cheers,

Renzo

----- Original Message -----
From: "Duncan Grisby" <duncan at grisby.org>
To: "Renzo Tomaselli" <renzo.tomaselli at tecnotp.it>
Cc: "Omniorb list" <omniorb-list at omniorb-support.com>
Sent: Monday, November 17, 2003 1:49 PM
Subject: Re: [omniORB] invalid warning while destroying compound DynAnys


> On Friday 14 November, "Renzo Tomaselli" wrote:
>
> >     while destroying compound DynAnys, we get a warning (if trace level
is
> > 25) from dynAny.cc, line#323.
> > This warning occurs at each nested component since it appears to have
> > pd_is_root == 1, while (I guess) this should be true only for the top
level
> > DynAny (e.g. the container).
>
> Yes, pd_is_root should only be true for the top level DynAny. Can you
> provide some (minimal) example code that exhibits the problem?
>
> Cheers,
>
> Duncan.
>
> --
>  -- Duncan Grisby         --
>   -- duncan at grisby.org     --
>    -- http://www.grisby.org --
>




More information about the omniORB-list mailing list