LhWaitForPendingRemovals() public static method

public static LhWaitForPendingRemovals ( ) : void
return void
コード例 #1
0
ファイル: LocalHook.cs プロジェクト: BOTLANNER/Easyhook
        /// <summary>
        /// Processes any pending hook removals. Warning! This method can be quite slow (1 second) under certain circumstances.
        /// </summary>
        /// <see cref="NativeAPI.LhWaitForPendingRemovals()"/>
        public static void Release()
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();

            NativeAPI.LhWaitForPendingRemovals();
        }
コード例 #2
0
ファイル: LocalHook.cs プロジェクト: sffej/gitextensions
        /// <summary>
        /// Processes any pending hook removals. Warning! This method can be quite slow (1 second) under certain circumstances.
        /// </summary>
        public static void Release()
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();

#if SUPPORT_THEME_HOOKS
            NativeAPI.LhWaitForPendingRemovals();
#endif
        }