[omniORB] Omni_mutex and static global object
Duncan Grisby
duncan at grisby.org
Wed Sep 15 15:10:38 BST 2004
On Wednesday 15 September, "Frederic Prin" wrote:
> >... wouldn't expect omniORB to be setup yet since you haven't even
> called orb_init().
> Yes you are right. But it is orb_init() itself that crash (when
> internaly invoke omni_mutex) !
omniORB requires some statically initialised objects. Because C++ does
not guarantee the order in which static initialisers in different
compilation units run, you cannot call ORB_init() from a static
initialiser. ORB_init() can only safely be called after main() has
executed.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list