Bug 376

Summary: ACE::init ()/ACE::fini () calls should be added to main ()
Product: ACE Reporter: levine
Component: ACE ExampleAssignee: DOC Center Support List (internal) <tao-support>
Status: RESOLVED ---    
Severity: trivial    
Priority: P5    
Version: 5.0.7   
Hardware: other   
OS: Windows NT   

Description levine 1999-11-05 06:58:56 CST
With this config.h:

#define ACE_HAS_NONSTATIC_OBJECT_MANAGER      1
#define ACE_DOESNT_INSTANTIATE_NONSTATIC_OBJECT_MANAGER       1
#include "config-win32.h"

programs such as TAO_IDL fail on startup because they don't
have an Object_Manager instance.  That's right:  this configuration
explicitly says not to create an Object_Manager instance.

A workaround is to add ACE::init ()/ACE::fini () calls to
main ().  It would be nice to do this to TAO_IDL, gperf, etc.
But, only if we have time.
Comment 1 levine 1999-11-05 07:00:59 CST
Reported by:
Dmitri Katchalov <Dmitri.Katchalov@computershare.com.au>
Comment 2 levine 1999-11-13 07:56:59 CST
I'm closing the bug.  I don't see a valid use for that config.h,
and Dmitri didn't respond to my request for the motivation for it.