[omniORB] Passing strings to functions

Duncan Grisby dgrisby@uk.research.att.com
Thu, 06 Dec 2001 10:01:54 +0000


On Thursday 6 December, "David Bellette" wrote:

> The following code, I have implemented as a servant using omniOrb, but
> is causes a heap exception on exiting, which I believe is due to the
> cleanup of the passed in string.

The code using _retn() is correct. The problem is that you are mixing
debug application code with the non-debug version of the omniORB
libraries. Link with the debug versions of the libraries and it will
work fine.

It's just one of those helpful Windows things...

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --