[omniORB] omniorb 4.1.3 and large messages
Duncan Grisby
duncan at grisby.org
Fri Jan 23 15:27:15 GMT 2009
On Thursday 22 January, Will Denissen wrote:
> >shouldn't use arrays, because they are allocated on the stack (therefore
>
> Is there an possibility/option to let the server allocate on the heap? It
> would probably solve these kinds of problems.
The standard C++ mapping for arrays says they should be on the stack.
omniORB can't allocate them on the heap. Basically, large IDL arrays
don't work with the C++ mapping.
You could, of course, modify omniORB to put arrays on the stack, but
that would make it incompatible with the standard mapping.
As others have said, it's far better to use sequences if you have large
data items.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list