[omniORB] Error demarshalling result
Romain Vinot
romain.vinot at akio-software.com
Wed Aug 25 12:30:51 BST 2004
Hello,
I am maintaining an application using OmniORB with few knowledge of
Corba. I'm having strange behavior when outputting strings from a Corba
interface.
I wrote a small program reproducing the problem. The interface has only
one function "Echo" that echoes the string called in parameter.
When I execute this function with a string which has 8,9 or 10 chars,
I've got a CORBA::MARSHALL exception. With anything else, everything is
fine.
Is there something I did wrong ?
I use OmniORB 4.0.3. Just tried OmniORB 4.0.4 with same result.
I really don't understand what is happening so thanks in advance for
any help.
Romain
IDL file :
module DistributedTest
{
interface DistTest
{
void Echo (in string msg, out string msgecho);
};
};
Implementation :
void DistTest_i::Echo (const char *msg, CORBA::String_out msgecho)
{
msgecho = CORBA::string_dup (msg);
}
More information about the omniORB-list
mailing list