Application fails to close it

May 29, 2009 at 1:13 PM

Hi

When I close the app WPFVEMAPSample the null exception is raised from:

 this.globeControl.Host.WorldEngine.RemoveLocationListener(rp);

because this.globeControl.Host == null, the completed function is:

public void RemoveRegisteredPosition(object key)
        {
            if (registeredPositions.ContainsKey(key))
            {
                RegisteredPosition rp = registeredPositions[key];

                this.globeControl.Host.WorldEngine.RemoveLocationListener(rp);

                registeredPositions.Remove(key);
            }
        }

and the call stack is:

> InfoStrat.VE.dll!InfoStrat.VE.VEMap.RemoveRegisteredPosition(object key = {InfoStrat.VE.VEPushPin}) Line 766 C#
  InfoStrat.VE.dll!InfoStrat.VE.VEPushPin.Finalize() Line 364 + 0x18 bytes C#

I'm using the lastest version of source download

Huge thanks

Javier

 

Coordinator
May 29, 2009 at 2:30 PM

See http://virtualearthwpf.codeplex.com/Thread/View.aspx?ThreadId=57223