Changeset 4080
- Timestamp:
- 06/01/07 16:26:19 (6 years ago)
- Files:
-
- 1 modified
-
components/RandomBits/trunk/RandomBits/main.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/RandomBits/trunk/RandomBits/main.cpp
r3986 r4080 22 22 23 23 #include <iostream> 24 24 25 #include "ossie/ossieSupport.h" 26 #include "ossie/debug.h" 25 27 26 28 #include "RandomBits.h" … … 30 32 31 33 { 34 ossieDebugLevel = 3; 35 32 36 ossieSupport::ORB *orb = new ossieSupport::ORB; 33 37 omni_mutex component_running_mutex; … … 45 49 randombits_servant->post_constructor(randombits_var); 46 50 51 PortableServer::ObjectId_var servantId = orb->poa->reference_to_id(randombits_var); 52 47 53 randomBits.bind(randombits_var); 48 54 … … 53 59 54 60 component_running->wait(); 61 55 62 randomBits.unbind(); 63 64 DEBUG(4, RandomBits, "Deactivate object."); 65 orb->poa->deactivate_object(servantId); 66 67 DEBUG(4, RandomBits, "Destroy POA."); 68 orb->poa->destroy(false, false); 69 70 DEBUG(4, RandomBits, "Shutdown orb."); 56 71 orb->orb->shutdown(0); 57 72