[omniORB] sequence of string question

V Jovanovic canontriplex@yahoo.com
Thu, 20 Dec 2001 15:27:06 -0800 (PST)


I am trying to get foo to work here fro the following
IDL

typedef sequence<string> StrSeq;

interface cad_server{

    struct FtIdNm {
      short size;
      StrSeq FeatNames;
    }

    FtIdNm foo(in long);
}

Then in the server I do
 
cad_server::FtIdNm_var f = 
               cad_server::FtIdNm;

f->size = feat_ids.size();
f->FeatNames.length(3);

now if I do
f->FeatNames[0] = CORBA::string_dup("test0");
f->FeatNames[1] = CORBA::string_dup("test1");
f->FeatNames[2] = CORBA::string_dup("test2");

and send that back server shows

omniORB: An exception has occured and was caught by
tcpSocketMT Worker thread.

But if I don't do any writing into FeatNames no
exception happens.

I don't understand what is going on.  
How can I send a sequence of names from the server
within a structure?

Vin




__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com