[omniORB] Exception in simple client/server

Thomas Legault blister_foo@hotmail.com
Thu Nov 28 16:23:01 2002


Hi,

I getting an exception at this line in my client code

e->test( entreeVar, sortieVar );

The server gets the request and displays the output correctly.

---------------------------------------
Here is the client code

static void test(Testing_ptr e)
{
	TestData * entree = new TestData;
	entree->nom = "test";
	entree->valeur = 45;

	TestData_var entreeVar( entree );

	TestData * sortie = new TestData;
	TestData_var sortieVar( sortie );

	cout << "CALL" << endl;
	e->test( entreeVar, sortieVar );

	cout << "CLIENT YEAH" << endl;
}
-------------------
Server code

//   Methods corresponding to IDL attributes and operations
void Testing_i::test(const TestData& entree, TestData_out sortie){
  // insert code here and remove the warning
	cout << "Server YEAH " << entree.nom << " " << entree.valeur << endl;


	TestData * sortieData = new TestData;
	sortieData->nom = "NOM DU SERVEUR";
	sortieData->valeur = 2;

	TestData_var sortieVar( sortieData );
	sortie = sortieVar.out( );
}


Any help would be appreciated.

Thanks,
Thomas

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail