Community of VE/MapPoint Users and Developers
This is a discussion on Problem or Bug using FindNearby within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm experiencing problems when using the MS Mappoint ActiveX FindNearby command in a loop. My program places 50 pushpins on ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Problem or Bug using FindNearby command in a loop. My program places 50 pushpins on a map. Then I load +/- 5000 points (lat,lon) one by one to check if they are close to one of these pushpins. When I run this form once it works fine but when running it for the +/- 4th time the application (mappoint.exe ActiveX control)hangs. If I click the pause (break all button) it hangs at the following line. For Each oObj In oRes When I have a look at the Local Values i see that most of the responses are “error: cannot obtain value” Can someone please help me with this problem? As you can see I copied a part of the code below Thanks in advance, Humphrey example. main program: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim frm_zoeken as new Form_Zoeken frm_zoeken.ShowDialog() End Sub called program: Private oRes As MapPoint.FindResults .. .. private sub DatabaseLoop do "load latitude and logitude from database" NearbyLocation() loop AxMappointControl1.SaveMap() AxMappointControl1.CloseMap() Close() End Sub Private Sub NearbyLocation() Dim oObj As Object Dim oLoc As MapPoint.Location Dim oPin As MapPoint.Pushpin Dim oRes_teller As Integer = 0 locatie_STR = "" 'Loop over collection For Each oObj In oRes Dim sTxt As String 'Find out object type If TypeOf oObj Is MapPoint.Pushpin Then oPin = oObj locatie_STR = oPin.Name Exit For End If Next oObj End Sub |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FindNearby or QueryCircle | RickS | MapPoint 2006/2009 Discussion | 1 | 12-27-2005 09:53 AM |
| C# FindNearby | MD2000 | MapPoint 2006/2009 Discussion | 6 | 06-12-2005 04:11 PM |
| FindNearby problem | webjagger | MapPoint 2006/2009 Discussion | 0 | 06-25-2004 05:56 AM |
| Help with FindNearby | BobIDEAS | MapPoint 2006/2009 Discussion | 1 | 01-30-2003 10:17 PM |
| FindNearby Method | Anonymous | MapPoint 2006/2009 Discussion | 0 | 09-24-2002 09:08 AM |
Cheap flights to Goa
Check out Holiday Hypermarket to book your cheap flights to Goa. A unique and exciting destination. Get set to jet off!
Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.
Jamaica Holidays
Jamaica Holidays can include world class business hotels, upscale shopping and top entertainment and dining. Alternatively, hit the beach or hike in the hills. Book online with us.
Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.
Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.
Cheap Inclusive
Make use of our service at Travel.co.uk to help you to research cheap inclusive holidays.
Cheap Portugal Holidays
Hotels of all ratings! Find information on cheap Portugal holidays at On The Beach!