Does this one go "sticky" in the tech archives?????

Re: Garbage collection, this does work, Calling MinMap does free up LOT AND LOTS of memory, in effect we are forcing windows to trim the working set of the map point app. Here I'm lloking for the hwnd of the mp app window, i have given it a different name, to integrate with my app, then simply send it a win msg that simulates the user clicking the minimize button on the window. NOTE: as stated earlier, programitically setting the widow to m,inimized DOES NOT WORK!!!!
I call this routine periodically after the user moves from one breakdown job to another, and its keeps things fresh along the way! All I need do is programatically resize when user wants control again on the next job, OR you could just call this and a restore/maximize routine pertiodically at an appropriate application point.

Use taskmanager and try this after using your map for a few minutes of serious zooming and navigation over say London/Paris or NY,LA etc, really crank up that memory usage before caling this!

Private Sub MinMap()
On Error GoTo EH_error

Dim lHWnd As Long
Dim lResult As Long

lHWnd = FindWindow(vbNullString, "Map - Call Assist Vehicle Breakdown System")
lResult = SendMessage(lHWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0)

Exit Sub
Err.Raise Err.Number, vbCrLf & App.Title & ".frmMain.MinMap()." & Err.Source, Err.Description
End Sub