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 |
![]() |
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 06:48 PM |
| Map-In-A-Box 2.0 Press Release | Anonymous | News and Announcements | 0 | 03-16-2004 10:59 AM |
| GPS NavStar Version 3.0.0 Release | dzhong | News and Announcements | 3 | 12-05-2003 10:09 PM |
| MP 2004 Release schedule | Anonymous | News and Announcements | 5 | 08-02-2003 08:30 AM |
| Does anyone know of any good resources for using M.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-12-2002 03:48 AM |
Ski Holidays Andorra
Ski holidays in Andorra offer value for money right across the board. Clothes, meals and accommodation are great value with duty free prices. Book great value ski holidays today.
Travel Agent
Travel Counsellors was voted UK's Best Travel Agent at the Guardian Unlimited travel awards.
Cheap Flight Canada
Making a cheap flight to Canada can become a reality when you book online with dealchecker.co.uk. Our simple search allows you to see for yourself who is the cheapest.
Holidays to Sri Lanka
Holidays to Sri Lanka are enriched by the glittering tapestry of culture and breath taking mountain views. Book a holiday there today!
Cheap Canaries Holidays
Are you hunting down cheap Canaries holidays? Well check out ulookubook.com to bag a great value holiday. There are numerous festivals taking place all year round. Why not book your holiday around one?
Family activity holidays
Family holidays can be full of fun activity. Check out your options at Travel.co.uk
Cheap Holidays in Portugal
Don't spend your hard earned money on travelling agents! Come to On The Beach, and see information on cheap holidays in Portugal.