MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Garbage Anyone?

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2004
Junior Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 12
Garbage Anyone?

Admins/Moderators,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
garbage


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 07:52 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59