[omniORB] Recursive sequences

Robert Gartler gartler at knapp.com
Thu Mar 1 08:23:03 GMT 2012


Am 27.02.2012 16:47, schrieb Duncan Grisby:
>           struct ReservationTreeNode;
>           typedef sequence<ReservationTreeNode>  ReservationTreeNodeList;
>           struct ReservationTreeNode {
>               string zoneName;
>               ReservationTreeNodeList children;
>           };
>
> Now omniidl is happy, but the following python line doesn't work anymore
> once the content_type is a ReservationTreeNodeList:
>
> tc.content_type().kind()
> There's a problem where some code that handles release of recursive
> sequences was a bit too aggressive at releasing things. It works to
> access the content_type the first time, but after that it breaks. The
> attached patch should fix it. Does it?
>
It does.
Is there any drawback? Or will this patch be included in the next 
omniORBpy release?




More information about the omniORB-list mailing list