Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_3315_Regression / main.cpp
blob708fd164aab1f9b35e2902d1213e99cffe8c8142
1 #include "tao/ORB.h"
2 #include "ace/Log_Msg.h"
3 #include "ace/Thread.h"
4 #include "ace/os_include/os_pthread.h"
6 int result = 0;
8 ACE_THR_FUNC_RETURN main_orb(void*)
10 try
12 int argc = 0;
13 ACE_TCHAR **argv = 0;
14 CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
16 orb->destroy ();
18 catch(...)
20 result = 1;
21 ACE_ERROR ((LM_ERROR, ACE_TEXT("(%P|%t) Unknown error\n")));
24 return 0;
27 int ACE_TMAIN(int, ACE_TCHAR*[])
29 ACE_hthread_t thread1;
30 # if defined (ACE_HAS_PTHREADS)
31 pthread_create(&thread1, 0, main_orb, 0);
32 #else
33 ACE_Thread::spawn (main_orb, 0, THR_NEW_LWP|THR_JOINABLE, 0, &thread1);
34 #endif
35 ACE_Thread::join( thread1);
37 return result;