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 3 of 3

Mappoint error

This is a discussion on Mappoint error within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am using VB.NET with MapPoint 2006 or Mappoint 2004 ActiveX Control. With MapPoint 2004 when I change the pushpin ...

  1. #1
    mmjc23 is offline Junior Member White Belt
    Join Date
    Feb 2006
    Posts
    9

    Mappoint error

    I am using VB.NET with MapPoint 2006 or Mappoint 2004 ActiveX Control.
    With MapPoint 2004 when I change the pushpin BallonState property and the Map is at max zoom level, some pushpin remain without label.
    Instead, with MapPoint 2006 and Map at max zoom level, DataSet "MoveTo" method sometimes return "False".
    This is not an application error infact if I modify code from:

    Code:
    'Load pushpin 
    objPin = AxMpControl.ActiveMap.AddPushpin(objNewLoc, Contatto.Apparato.IdApparato)
    'Move pushpin in my "ContattiPinSet" Dataset
    objPin.MoveTo(ContattiPinSet)
    to:

    Code:
    'Load pushpin 
    objPin = AxMpControl.ActiveMap.AddPushpin(objNewLoc, Contatto.Apparato.IdApparato)
    'Move pushpin in my "ContattiPinSet" Dataset
    if objPin.MoveTo(ContattiPinSet) = false then objPin.MoveTo(ContattiPinSet)
    the second attempt works.

    Anyone have the same error?
    Thanks
    Matteo

  2. #2
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Re: Mappoint error

    I've seen this error a couple times.

    Seems like the MoveTo method requires that the pushpin object be fully-drawn before it can be moved to the destination dataset. Probably attributable to an underlying threading issue.

    I didn't find a fix for it, but simply moved the MoveTo method to a different subroutine which was called a moment later.

    HTH
    Paul

  3. #3
    mmjc23 is offline Junior Member White Belt
    Join Date
    Feb 2006
    Posts
    9

    Re: Mappoint error

    Thanks for reply Paul.
    I found another "MoveTo" method error.
    Sometimes this metod return "True" and Puship Parent become "ContattiPinSet" Dataset but puship remain in "Symbol" Dataset infact
    "AxMpControl.ActiveMap.Datasets(1).RecordCount = 1".
    I'm waiting for MapPoint 2006 SP1

    Thanks
    Matteo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Run-time error 2147467259 80004005 automation error
    By ThomasB in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-27-2007, 12:41 PM
  2. Mappoint Error
    By Mudrover in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 01-20-2005, 03:59 PM
  3. About ERROR 4-40028-1. Error or Bug ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 01-11-2005, 10:32 AM
  4. Mappoint OCX error
    By ljk25 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-29-2004, 04:25 AM
  5. Help!! Error running mappoint
    By gag in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-27-2004, 11:45 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 92 93 94 95 96