Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

using kernel32.dll to release Memoryusgae, is this good approach?

$
0
0

Hi,

I ma using Avalon Dock in my WPF Application, but when i close my Tab my memory did not remove so i am using kernel32.dll, so far i have not seen any problem, but i have impression kernel not good if doenot use properly, so checking here, below is line let me know :

   [System.Runtime.InteropServices.DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize",
ExactSpelling = true, CharSet = System.Runtime.InteropServices.CharSet.Ansi, SetLastError = true)]
        private static extern int SetProcessWorkingSetSize(
          IntPtr process, int minimumWorkingSetSize, int maximumWorkingSetSize);

Thanks

A-


Ashok


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>