Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / Destroy / main.cpp
blob65dc9125add3d6bd6a2de22bfa8e2e70ed209f20
1 #include "../lib/Notify_Test_Client.h"
2 #include "orbsvcs/NotifyExtC.h"
3 #include "ace/OS_main.h"
5 int
6 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
8 try
10 // Initialize the base class.
11 Notify_Test_Client client;
12 client.init (argc, argv);
14 CosNotifyChannelAdmin::EventChannelFactory_ptr ecf = client.notify_factory ();
16 NotifyExt::EventChannelFactory_var ecf_ext = NotifyExt::EventChannelFactory::_narrow (ecf);
18 ACE_DEBUG((LM_DEBUG, "Destroying ECF...\n"));
20 ecf_ext->destroy ();
22 ACE_DEBUG((LM_DEBUG, "ECF destroyed.\n"));
24 catch (const CORBA::Exception& ex)
26 ex._tao_print_exception (ACE_TEXT("Error:\n"));
27 return 1;
30 return 0;