summaryrefslogtreecommitdiff
path: root/TAO/tests/ORB_shutdown/Foo_Bar.cpp
blob: a55aa17b7e17de21950f6ecaa227fe47a881239a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// $Id$

#include "Foo_Bar.h"

Foo_Bar::Foo_Bar (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb))
{
}

Foo_Bar::~Foo_Bar (void)
{
  ACE_DEBUG ((LM_DEBUG,
              "(%P|%t) Shutting down the ORB again\n"));

  try
    {
      this->orb_->shutdown (1);
    }
  catch (...)
    {
      // Don't allow exceptions to leave the destructor.
    }
}