Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
930
Memory leak
posted

Hi,

In the old forum, someone highlighted an issue with a memory leak when using WinSpellChecker. I'm using.Net 2007 Vol v2, and I still have this problem. Using Ants profiler, it appears the dictionary is loaded on every form show and never released. Was it ever resolved?

 Thanks

Ryan 

TestSpellCheck.zip
Parents
No Data
Reply
  • 3707
    posted

    I'm not sure about your question, but you could use the code I'm pasting below in a timer that executes every so many minutes to keep memory usage lower. If you're using C# and will test it out you'll see how much it saves.

                    try
                    {
                        Process process = Process.GetCurrentProcess();
                        process.MaxWorkingSet = process.MaxWorkingSet;
                        process.Dispose();
                    }
                    catch { }
Children