[omniORB] problem when passing an interface in a function

Edward Lin edwardlin.tw at gmail.com
Thu Jan 21 22:31:23 GMT 2010


Hi,

At least I see one problem, you cannot "return p"; you must

char* inter2::getName( ... )
{
    ...
    return CORBA::string_dup(p);
}

You can refer to omniORB 'echo' example.

>> server:
>>
>> char * inter2::getName( prova::inter_ptr obj )
>> {
>>  char *p=obj->name();
>>
>>  cout<<p<<endl
>>
>> return p;
>> }



More information about the omniORB-list mailing list