Bug 376 - ACE::init ()/ACE::fini () calls should be added to main ()
Summary: ACE::init ()/ACE::fini () calls should be added to main ()
Status: RESOLVED
Alias: None
Product: ACE
Classification: Unclassified
Component: ACE Example (show other bugs)
Version: 5.0.7
Hardware: other Windows NT
: P5 trivial
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 1999-11-05 06:58 CST by levine
Modified: 1999-11-13 07:56 CST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.