[omniORB] How can I handle sequence type in IDL?

janarbek canarbekmatay at yahoo.com
Thu Oct 4 18:28:11 BST 2007


Dear all, 
  I have follwoing interface. 
  typedef sequence<short> seqShort;
   
  interface shortSeqTestServer {
  void setSize(inout short size);
  void acceptType(inout seqShort value);
  seqShort returnType();
  };
   
  In my C++ code, I have 
   
  seqShort_var testPattern;
  
  m_dSize =5;
  testPattern = new seqShort[m_dSize];
   for (int i = 0; i < m_dSize; i++)
    testPattern[i] = (short) 1;
   
  Now I am doing 
  objsshortSeqTestServer-> acceptType(testPattern ); 

  But it just gives BAD CORBA PARAM error. I didn't find what is wrong. Someone has any advice? 
   
  Regards,
  janar
   

       
---------------------------------
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get listings, and more!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20071004/859d0fe7/attachment.htm


More information about the omniORB-list mailing list