[omniORB] sequence problem / beginner

konstantin.ermakov@bnpparibas.com konstantin.ermakov@bnpparibas.com
Wed, 4 Apr 2001 13:46:37 +0200


Hello, all!

     I have a trouble of with in/out sequences sending. the code is

IDL:
-------------------------

typedef  sequence<short> structure;


interface jumbo {

     structure iXSGetData( );

};

-------------------------------


the server side is :


- jumboExt.cpp

structure* jumboExt :: iXSGetData() {

     tmp->length( 100 );
     for( int i=0; i < 100; i++ ) {
          tmp[i] = i;
     };

     tmp = &temp;
//   return tmp._retn();
     return tmp.out();
};

-------------------------------


the client side is :

......
try {

     ................................................
     structure     *data;
     data = handler->iXSGetData();

} catch ( CORBA :: Exception & ) {

     cout << "Exception";          // This exception was thrown

};

-------------------------------------------



If somebody can give me an answer ASAP, it would be nice.
Thank you in advance.

Sincerely yours, Konstantin S. Ermakov;




___________________________________________________________

This message and any attachments (the "message") are intended solely for
the addressees and are confidential.  If you receive this message in error,
please delete it and immediately notify the sender.

Any use not in accord with its purpose, any dissemination or disclosure,
either whole or partial, is prohibited except formal approval.

The internet can not guarantee the integrity of this message.  BNP PARIBAS
(and its subsidiaries) shall (will) not therefore be liable for the message
if modified.
                       --------------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le "message") sont
etablis a l'intention exclusive de ses destinataires et sint confidentiels.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur.

Toute utilisation de ce message non conforme a sa destination, toute
diffusion ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse.

L'internet ne permettant pas d'assurer l'integrite de ce message, BNP
PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
___________________________________________________________