MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Problem or Bug using FindNearby

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 ...


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 09-13-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Problem or Bug using FindNearby

I'm experiencing problems when using the MS Mappoint ActiveX 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
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

Similar Threads

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


All times are GMT -5. The time now is 07:51 PM.


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

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!


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