[omniORB] out parameter does not change

Bünyamin Altıntaş bunyamin_altintas@yahoo.com
Tue, 5 Oct 1999 00:28:13 -0700 (PDT)


--0-1681692777-939108493=:28463
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Hello,
I have a problem. I send IDL and object implementation
as an attachment. Briefly, my problem is as follows:

out parameter is coming to client side without
changing. But this happens if client and server
programs run in different machines. In the same
machine, this does not happen.
platform [NT4.0 ServicePack 5]

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--0-1681692777-939108493=:28463
Content-Type: text/plain; name="object.txt"
Content-Description: object.txt
Content-Disposition: inline; filename="object.txt"

// idl
interface Vknma {
	long exec (in string mukType, in string opCode, in string inPar, out string outPar) raises (VknmaErr);
	long exec2 (in string mukType, in string opCode, in string inPar, out string outPar);
};

// object implementation
CORBA::Long Vknma_i::exec(const char*  mukType,const char*  opCode, const char*  inPar, char*& outPar) {
	RWCString rwMukType = mukType, rwOpCode = opCode;
	int tmpMuktype, tmpOpCode;
	RWCString	result;

	Parameters	parVec;

	if ((tmpMuktype = determineMukType (rwMukType)) == UNDEFMUKTYPE) {
		throw VknmaErr ("VKNMA", __FILE__, __LINE__, "Tanımsız Mükellef tipi", 10, 99);
	}

	if ((tmpOpCode = determineOpCode (rwOpCode)) == UNDEFOPCODE) {
		throw VknmaErr ("VKNMA", __FILE__, __LINE__, "Tanımsız OpCode", 11, 99);
	}

	try {
		checkIfMukTypeAndOpCodeUyumlu (tmpMuktype, tmpOpCode);
	}
	catch (VknmaErr& ex) {
		throw;
	}

	// Now parse parameters
	try {
		parseIPar (inPar, parVec);
	}
	catch (VknmaErr& ex) {
		throw;
	}

	CORBA::String_var dd = (const char*) "4444444444";

	try {
		dispatch (tmpMuktype, tmpOpCode, parVec);
	}
	catch (VknmaErr& ex) {
		throw;
	}
	
	outPar = dd;
	return 1;
}

--0-1681692777-939108493=:28463--