Hi,I'm making a funcion to show the mouse position on the map, but I'm having trouble fixing the following problem.If the user moves the mouse through the application before it finishes loading, this error occurs:
Runtime Error in Microsoft JScript: Unhandled Error in Silverlight Application Object reference not set to an instance of an object.
in MDSalvador.MainPage.Mapa_MouseMove (Object sender, MouseEventArgs e)
in MS.Internal.CoreInvokeHandler.InvokeEventHandler (Int32 typeIndex, handlerDelegate Delegate, Object sender, Object args)
in MS.Internal.JoltHelper.FireEvent (unmanagedObj IntPtr, IntPtr unmanagedObjArgs, argsTypeIndex Int32, String eventName)
I'm basicaly using the function shown here : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords except for that i'm showing only the coordinates of the map.