Hello Team,
I'm looking forward to a solution which would reduce(or free) the memory consumed by Internet explorer control within application while navigating to different LinkedIn web pages. Any sort of help is highly appreciated. We are adversely affected by this memory leak with IE control inside application.
I'm using TwebBrowser in an embarcadero XE4 application. It claims that "TWebBrowser wraps theIWebBrowser2interface from Microsoft's Shell Doc Object and Control Library (SHDOCVW.DLL)".
My Issueis, While browsing webpages memory consumed by browser isnot being released. Browser instance doesn't release memory on form close. I have to close entire application in order to release memory consumed by browser instance.
I googled and triedseveral suggestions with No luck. Someone suggested an approach to "Cleanly Destroy WebBrowser Control" on this Stack Overflow link. But this also does not work to release memory.
Steps toreproducethe issue:
Pre condition: FEATURE_BROWSER_EMULATION is set to 11001 in registry.
- Create a simple windows form application.
- Place a WebBrowser on the form and a Button to navigate to google.
- Run the application.
- Click Button to navigate to google and search for "linkedin satya nadell microsoft"
- In search results, click on the link which navigates to linkedin profile.
- Observe memory shoot-up for the application in windows task bar.
- Repeat step 4,5 and 6 multiple times
Actual Result:
Think of a multiple document interface in which form containing TwebBrowser is launched from another form. If you close the form containing WebBrowser, Memory is not released.
Expected Result:
Memory should release either on closing form containing Twebbrowser or navigating to different page within browser.
hi guys