View Single Post

  #2 (permalink)  
Old 12-11-2003
Anonymous Anonymous is offline
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;
            }
        }
}
Reply With Quote