[omniORB] Recursive sequences

Duncan Grisby duncan at grisby.org
Mon Feb 27 15:47:49 GMT 2012


On Wed, 2012-02-22 at 15:45 +0100, Robert Gartler wrote:

> But when I used omniidl to build the python bindings, omniidl complained:
> Warning: Anonymous sequences for recursive structures are deprecated. 
> Use a forward declaration instead.

It's only a warning, so you can choose to keep the old IDL if you
want...

[...]
>          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?

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --

-------------- next part --------------
A non-text attachment was scrubbed...
Name: typecode.patch
Type: text/x-patch
Size: 2390 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20120227/93dd8d92/typecode.bin


More information about the omniORB-list mailing list