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; } }
internal static extern IntPtr GetProcAddress(SafeLibraryHandle hModule, String procname);
internal static extern IntPtr dlsym(SafeLibraryHandle hModule, String procname);