[omniORB] static variable & thread

Renny Koshy renny@visualsoft.com
Mon, 6 Mar 2000 10:40:36 -0500


>   - I want to develop an application with a client calling 
> a server which execute threads.

Can you be more specific about what you mean, since:
	If your client calls the server, omniORB is automatically
using threads to process your request (default of upto 5).

> So I tried to write like you say a _i class which inherit 
> from the both _sk class and omnithread class. It seem ok, but 
> when the constructor tries to execute the run() method of 

You shouldn't call the run() from the constructor.  Call it from
the "thing" that constructs it.  i.e.

	.... some code ...

	ClassX BLAH = new ClassX(param1,pararm2,parar3);

	BLAH->run();

> omnithread (calling by start()), the program abort. Perhaps I 
> have to declare in the IDL file this inheritance with omnithread ? 
> How can I do that ?