static void shutdown( DDS.DomainParticipant participant) { /* Delete all entities */ if (participant != null) { participant.delete_contained_entities(); DDS.DomainParticipantFactory.get_instance().delete_participant( ref participant); } /* RTI Connext provides finalize_instance() method on * domain participant factory for people who want to release memory * used by the participant factory. Uncomment the following block of * code for clean destruction of the singleton. */ /* * try { * DDS.DomainParticipantFactory.finalize_instance(); * } catch (DDS.Exception e) { * Console.WriteLine("finalize_instance error: {0}", e); * throw e; * } */ }
private static void Shutdown(DDS.DomainParticipant participant) { // Delete all entities if (participant != null) { participant.delete_contained_entities(); DDS.DomainParticipantFactory.get_instance().delete_participant( ref participant); } // RTI Connext provides finalize_instance() method on // domain participant factory for users who want to release memory // used by the participant factory. Uncomment the following block of // code for clean destruction of the singleton. /* * try { * DDS.DomainParticipantFactory.finalize_instance(); * } * catch(DDS.Exception e) { * Console.WriteLine("finalize_instance error {0}", e); * throw e; * } */ }
static void shutdown( DDS.DomainParticipant participant) { /* Delete all entities */ if (participant != null) { participant.delete_contained_entities(); DDS.DomainParticipantFactory.get_instance().delete_participant( ref participant); } }