[omniORB] Passing strings to functions

David Bellette david.bellette@nec.com.au
Tue, 11 Dec 2001 14:30:29 +1100


Duncan,

This fixed the problem. Just one of those things we'll have to watch out for in a build files....

Thanks very much. 

David



----- Original Message ----- 
From: "Duncan Grisby" <dgrisby@uk.research.att.com>
To: "David Bellette" <david.bellette@nec.com.au>
Cc: "OmniOrb Listserver" <omniorb-list@uk.research.att.com>
Sent: Thursday, December 06, 2001 9:01 PM
Subject: Re: [omniORB] Passing strings to functions 


> 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 --
> 
>