[omniORB] omniORB: Large objects on stack

Bhatia, Neeraj Neeraj.Bhatia@compaq.com
Wed, 14 Feb 2001 10:11:09 -0500


		Hi All,

		I am implementing a multithreaded server on Tru64 unix using
omniORB.

		A feed function takes a complex object and stores it in the
database. 

		IDL: 
		Inteface ClassA
		{
		long Feed (in ComplexObject obj);
};

Generated Code:
class ClassA
{
		CORBA::Long ClassA::Feed (const ComplexObject& obj);
		};

		I noticed that to provide this functionlity, omniORB creates
the object on the stack before calling the server skeleton code. The default
thread stack on Unix is 32K, which might be less for this object. 

		Is there a better way to solve this problem, instead of
increasing the thread stacksize?

		Regards.

Neeraj Bhatia