[mapguide-trac] #1368: ACE:init missing in MapGuideCommon lib

MapGuide Open Source trac_mapguide at osgeo.org
Fri Sep 10 17:57:50 EDT 2010


#1368: ACE:init missing in MapGuideCommon lib
-----------------------+----------------------------------------------------
   Reporter:  haris    |       Owner:  brucedechant
       Type:  defect   |      Status:  new         
   Priority:  low      |   Milestone:              
  Component:  General  |     Version:  2.2.0       
   Severity:  trivial  |    Keywords:              
External_id:           |  
-----------------------+----------------------------------------------------

Comment(by brucedechant):

 This is from the Init_ACE.h file:

 namespace ACE
 {
   /**
    * This class implements the functions for the initialization and
    * shutting down ACE.  These functions are called only once per ACE
    * invokation.
    * @return Returns 0 on success, -1 on failure, and 1 if it had already
 been
    * called.
    */
   extern ACE_Export int init (void);

 From the above we should only be calling ACE::init() once. I did a quick
 test that called it from inside MapGuideCommon and the server would crash
 when I tried to shut it down. So I don't think calling it multiple times
 is a good idea.

 What about moving the ACE::init() from the server/web main executables to
 MapGuideCommon?

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1368#comment:4>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list