[omniORB] GUI and OmniORB Event loop
Duncan Grisby
dgrisby@uk.research.att.com
Fri, 26 Oct 2001 13:54:42 +0100
On Friday 26 October, =?iso-8859-1?B?RnLpZOlyaWMgUHJpbg==?= wrote:
> This is a multi-part message in MIME format.
Please don't send HTML mail to the omniORB list.
> My app have a GUI and is a CORBA client/server.
> What's the best solution to have a GUI main loop with the CORBA
> ORB::Run() loop running together in the same process of course ?
omniORB always does all of its work on threads it creates itself. You
do not need to call ORB::run() at all. Just initialise the ORB and
activate your POAs, then enter your GUI event loop. CORBA calls will
be dispatched successfully.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --