Changeset 20636

Show
Ignore:
Timestamp:
08/08/07 10:15:26 (1 year ago)
Author:
patrick
Message:

Fixed crash-on-exit errors that appear to be caused by using vprDEBUG in
tweek::CorbaManager::run(). It doesn't exactly make sense to me, but the
problems are fixed now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.2/modules/tweek/tweek/CORBA/CorbaManager.cpp

    r20635 r20636  
    472472void CorbaManager::run() 
    473473{ 
    474    vprDEBUG(tweekDBG_CORBA, vprDBG_STATE_LVL) << "Server is running!\n" 
    475                                               << vprDEBUG_FLUSH; 
    476  
     474   // NOTE: Do not put uses of vprDEBUG here. It can cause crashes on exit 
     475   // as singletons are destroyed. 
    477476   PortableServer::POAManager_var pman = mChildPOA->the_POAManager(); 
    478477 
     
    480479   mORB->run(); 
    481480//   mORB->destroy(); 
    482  
    483    vprDEBUG(tweekDBG_CORBA, vprDBG_CRITICAL_LVL) << "Server has shut down\n" 
    484                                               << vprDEBUG_FLUSH; 
    485481} 
    486482