Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Garbage Anyone? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Admins/Moderators, Does this one go "sticky" in the tech archives????? Re: Garbage collection, this does work, Calling MinMap does free ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Garbage Anyone? 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 EH_error: Err.Raise Err.Number, vbCrLf & App.Title & ".frmMain.MinMap()." & Err.Source, Err.Description End Sub |
![]() |
| Tags |
| garbage |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| garbage collection | SimonPearse | MapPoint 2006/2009 Discussion | 6 | 01-05-2007 12:10 PM |
| Garbage collection | daxydoggie | MapPoint 2006/2009 Discussion | 3 | 05-04-2005 12:35 PM |
| This forum is GARBAGE !!! | Anonymous | MapPoint 2006/2009 Discussion | 4 | 12-30-2004 01:53 PM |
Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.