UnLoad() public method

public UnLoad ( ) : bool
return bool
Beispiel #1
0
        public static void UnLoadUnmanagedLibrary()
        {
#if USESAFELIB
            if (m_hLibrary != null && !m_hLibrary.IsClosed)
            {
                m_hLibrary.Close();
                m_hLibrary.UnLoad();
                m_hLibrary.Dispose();
                m_hLibrary = null;
            }
#endif
        }
Beispiel #2
0
 private static void UnLoadUnmanagedLibrary()
 {
     if (!_hLibrary.IsClosed)
     {
         _hLibrary.Close();
         do
         {
             // be sure to unload swipl.sll
         } while (_hLibrary.UnLoad());
         // m_hLibrary.UnLoad();
         _hLibrary.Dispose();
         _hLibrary = null;
     }
 }