Community of VE/MapPoint Users and Developers
This is a discussion on How do I release resources after a route is calculated within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have written a server that accepts a batch of route requests and returns route maps and directions for each ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How do I release resources after a route is calculated Are there any other datasets (e.g. directions) that need to be explicitly released and, if so, how. Thx. |
| |||
|
Hi, yes. the same leak is in mappoint.exe also
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Have you tried setting the objects you instantiated for the routes to NOTHING? like: Dim routeMap As MapPoint.Map Dim objRoute As MapPoint.Route Dim objSA As MapPoint.StreetAddress then set them all to nothing at the end of the method routeMap=NOTHING objRoute=NOTHING objSA = NOTHING |
| ||||
|
Wilfried, Rather than a memory leak, I think it is probably a case of lazy garbage collection? Lazy from our point of view that is - for many situations it is probably just right. Your trick with sending minimize/restore messages to MapPoint forces MapPoint to garbage collect. Doesn't work for in-process addins, but does work for external applications. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
|
Richard, Thanks for your clear view (as always) I think you ar right. I have a few servers doing almost nothing else than route calculation and they dont run out of memory... I was to fast answering doing only a little test with too fast conclusions
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| calculated, release, resources, route |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculated route jumps off motorway carriageway | Anonymous | MapPoint 2006/2009 Discussion | 8 | 10-21-2005 07:48 PM |
| Map-In-A-Box 2.0 Press Release | Anonymous | News and Announcements | 0 | 03-16-2004 11:59 AM |
| GPS NavStar Version 3.0.0 Release | dzhong | News and Announcements | 3 | 12-05-2003 11:09 PM |
| MP 2004 Release schedule | Anonymous | News and Announcements | 5 | 08-02-2003 09:30 AM |
| Does anyone know of any good resources for using M.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-12-2002 04:48 AM |