View Single Post

  #1 (permalink)  
Old 08-26-2002
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Nasty MapPoint Bug

Spent about 4-5 hours trying to figure out why my VB application was hanging while using the MapPoint OCX. It turns out that MapPoint hangs if you try and use the AddLine method on two location objects that contain the same lat/long. I had add the following code to get around it....

If objMap.Distance(objLoc, objLocLast) > 0.1 Then
objMap.Shapes.AddLine objLocLast, objLoc
Set objLocLast = objLoc
End If
Reply With Quote