Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 8 of 8

Pushpin Problem

This is a discussion on Pushpin Problem within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I am having problems adding a pushpin, I can select a pushpin from the 'Draw Menu Bar' I then ...

  1. #1
    PeterLeeds is offline Junior Member Yellow Belt
    Join Date
    Aug 2007
    Posts
    15

    Pushpin Problem

    Hi, I am having problems adding a pushpin, I can select a pushpin from the 'Draw Menu Bar' I then click on the map, the pushpin Icon with target shows, but when I left click it simply disappears and does not insert the pushpin.
    This used to work fine, but suddenly it has stopped working. I have uninstalled and re-installed Mappoint 2006 Europe, to no avail. Any Ideas? Thanks in advance.

    Peter

    Previously Posted in ‘Article Comments and Questions’

    Pushpin (cannot add)

  2. #2
    PeterLeeds is offline Junior Member Yellow Belt
    Join Date
    Aug 2007
    Posts
    15

    Re: Pushpin Problem

    Additional info.

    Trying to add pushpin using VBA Code I get the following error.

    run-time error '4000':

    An unexpected internal error occured.

  3. #3
    davidb is offline Senior Member Blue Belt
    Join Date
    Oct 2003
    Location
    London
    Posts
    290

    Re: Pushpin Problem

    Hi Peter, it's me again!! I've come across that error 4000 in the past and I think it was to do with a memory leakage. Provided your code is OK then it looks like you'll have to get your IT support involved. If you want me to run your code as a test then post it or PM it to me.

    David
    David
    UK mapping and map analysis services at www.broomanalysis.plus.com

  4. #4
    PeterLeeds is offline Junior Member Yellow Belt
    Join Date
    Aug 2007
    Posts
    15

    Re: Pushpin Problem

    Hi David,


    I do not generally use code to add pushpins.
    Just thought I’d try it to see if I could do it that way.
    The problem is adding a pushpin using Mappoint itself.

    However the code I used is from Microsofts examples, slightly modified because there are 2 Leeds in the UK.


    Sub AddPushpinToGoodFindMatch()
    Dim objApp As New MapPoint.Application
    Dim objFR As MapPoint.FindResults
    'Set up the application
    objApp.Visible = True
    objApp.UserControl = True
    Set objMap = objApp.ActiveMap
    Set objRoute = objMap.ActiveRoute
    'Get a FindResults collection
    Set objFR = objApp.ActiveMap.FindResults("Leeds")
    objRoute.Waypoints.Add objFR.Item(1)
    'If the first result is a good match, then use it
    If objFR.ResultsQuality = geoFirstResultGood Then
    objApp.ActiveMap.AddPushpin objFR.Item(1)
    ElseIf objFR.ResultsQuality = geoAmbiguousResults Then
    objApp.ActiveMap.AddPushpin objFR.Item(1)
    objApp.ActiveMap.AddPushpin objFR.Item(2)
    Else
    MsgBox "No a good match."
    End If
    End Sub


    But as I say this is not really the problem, I use VBA to Add places and Postcode without any problems.
    “get your IT support involved”, what IT support, I am it L

    Thanks for trying

    Regards

    Peter

  5. #5
    davidb is offline Senior Member Blue Belt
    Join Date
    Oct 2003
    Location
    London
    Posts
    290

    Re: Pushpin Problem

    Hi Peter. Your code runs fine on my MP2006. I can't help thinking the error 4000 and not being able to add a pushpin using the package are likely to be the same issue. Anyway I've exhausted my level of knowledge. Hopefully someone in this forum with a deeper understanding than me will know how to proceed. 3 things you might try:

    - there is a thread referenced at the bottom of this page which has some similarity, although as you've re-loaded MapPoint I can't see it being a corrupt file
    - you may want to air the error 4000 issue in a more general, more techy forum
    - one thing that struck me, when you try to add the pushpin using the package, and it disappears, does MapPoint still think there's a pushpin there or not. For example if you export to excel does it identify the pushpin?

    Sorry, I know this isn't much help.
    David
    UK mapping and map analysis services at www.broomanalysis.plus.com

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Pushpin Problem

    Hi,

    Looks a VB interpreter runtime error to me. What if you try exactly the same on a different system ?

  7. #7
    PeterLeeds is offline Junior Member Yellow Belt
    Join Date
    Aug 2007
    Posts
    15

    Re: Pushpin Problem

    Hi,

    The problem is now solved, but only after a complete re-install of Windows XP

    Must have been something to do with the OS.

    Thanks to all who replied.


    Peter

  8. #8
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Pushpin Problem

    Just thought I'd follow up with a potential solution in case someone else is in the same boat, read this thread and try the suggestions

    MAPPOINT - Problem : Pushpin is NOT displayed
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MAPPOINT - Problem : Pushpin is NOT displayed
    By Transit in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 01-15-2008, 01:07 PM
  2. Problem: Pushpin -> Polyline
    By Michelin in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-26-2004, 12:31 PM
  3. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 12:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91