I am using a Google map inside of vb.net application. The problem is that it keeps taking a memory space whenever I search a map on a web browser which is on a windows form . Even though I close the form, it is not disappeared from memory. The size of memory is just going up. That goes away when I close MDI form. What is the solution for this? How do I manage the memory problem?
-->Edited : One of out team member found the solution. It worked out pretty well. Just call the function whenever you want to do it. I used it on Form Closing event.
<DllImport("psapi.dll")> _
Public Function EmptyWorkingSet(ByVal hProcess As IntPtr) As Boolean
End Function
<DllImport("kernel32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Function GetCurrentProcess() As IntPtr
End Function
Public Sub FreeMemory()
EmptyWorkingSet(GetCurrentProcess())
End Sub