I have implemented an MFC application with n dynamic DockablePanes which host the web browser control in it.
Everything works fine, there is no memory leak problem until I use these two websites:
With these websites, my application started consuming memory. With both together it takes 2 MB/Second.
When I open only one of these two websites then there is no such problem.
Also, I already tried:
IntPtr pHandle = GetCurrentProcess();
SetProcessWorkingSetSize(pHandle, -1, -1);
but it didn't help, it only reduced the physical memory while virtual memory continue to climb. At some point the application will crash.
Can you please provide any solution if possible?