MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Nasty MapPoint Bug

This is a discussion on Nasty MapPoint Bug within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Spent about 4-5 hours trying to figure out why my VB application was hanging while using the MapPoint OCX. It ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-26-2002
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
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 10-10-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Than

Quote:
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
THANK YOU!
You saved my life!!! :P :P :P :P :P
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


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


All times are GMT -5. The time now is 03:57 AM.


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

Heathrow Flights
Find information for Heathrow flights online at Holiday Hypermarket. We have information about a range of airports. No holiday detail is too small to overlook!

Personal Travel Advisor
Let a personal Travel Advisor help with your travel plans. Travel Counsellors were voted UK's Best Travel Agent at the Guardian Unlimited travel awards

Holidays in Italy
Holidays in Italy boast some stunning countryside as well as a beautiful coastline. You can even visit an active volcano like Stromboli or Etna. Book at dealchecker.co.uk.

Dubai Holidays
Dubai holidays provide you with exotic sights, desert safaris and superb cuisine. There is an extensive range of things to do and see!

Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.

Price Comparison
Price comparison is the name of the game at Travel.co.uk. Visit our website and see for yourself.

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.


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