MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Releasing Memory when finished with mapoint via .net

This is a discussion on Releasing Memory when finished with mapoint via .net within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have an .NET application which starts mappoint puts somes pins on a map and then shows the mapoint application ...


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

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 12-05-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Releasing Memory when finished with mapoint via .net

I have an .NET application which starts mappoint puts somes pins on a map and then shows the mapoint application to the user, everything works fine except with repeated calls the function I have noticed Mapoint stas in memory even though I am setting the object to nothing does anyone one have any suggestions that might get around this.
any replies to rich_crittenden@hotmail.com please. in anticipation thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-11-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Do you call the .Select() method on the pushpin object?

If yes, try this :

It's seems to release the COM object.

Dominic Morin, MCP
dominic.morin@optimarketing.com

Code:
MapPoint.Pushpin pin = null;

...

Utilities.NAR(pin);
pin = null;
Code:
public class Utilities
{
        public static void NAR(object o)
        {
            try
            {
                Marshal.ReleaseComObject(o);
            }
            catch
            {
            }
            finally
            {
                o = null;
            }
        }
}
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
finished, mapoint, memory, net, releasing


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
how to calculate de starting and finished point on a route hidroela MapPoint 2006/2009 Discussion 5 02-06-2005 05:30 PM
Memory leaks in MapPoint rbarthels MapPoint 2006/2009 Discussion 2 01-27-2004 05:53 PM
Mappoint and VB.NET: Horrible Memory Usage mrobold MapPoint 2006/2009 Discussion 2 11-12-2003 06:16 PM
memory leak with objloc.goto? mzupan MapPoint 2006/2009 Discussion 1 08-02-2003 01:14 AM
Huge memory leak in using QueryShape? random0000 MapPoint 2006/2009 Discussion 2 03-28-2003 06:22 AM


All times are GMT -5. The time now is 09:55 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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