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

Runtime R6025 after 2004 iterations...

This is a discussion on Runtime R6025 after 2004 iterations... within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi folks, the code below generates a runtime error R6025 after looping 2004 times, under mp2002 with VB6 SP5. This ...

  1. #1
    LarryD is offline Junior Member White Belt
    Join Date
    Jul 2002
    Posts
    2

    Runtime R6025 after 2004 iterations...

    Hi folks,
    the code below generates a runtime error R6025 after looping 2004 times, under mp2002 with VB6 SP5. This is stripped down from a more complex app which sees same behaviour. Anyone seen this before? Suggestions?
    thanks,
    Larry


    Private Sub Command1_Click()
    Dim dblLoop As Double
    Dim dblLat As Double

    Dim objPushPin As MapPointctl.Pushpin
    Dim objLoc As MapPointctl.Location
    Dim objMap As MapPointctl.Map
    Dim bKeepGoing As Boolean

    Set objMap = Me.MappointControl1.ActiveMap

    bKeepGoing = True
    dblLat = 52
    dblLoop = 1

    While bKeepGoing
    Set objLoc = objMap.GetLocation(dblLat, -114)
    Set objPushPin = objMap.AddPushpin(objLoc, "IT:" & CStr(dblLoop))

    objPushPin.BalloonState = geoDisplayNone
    objPushPin.Symbol = 66
    objPushPin.Highlight = False
    objPushPin.Note = "IT:" & CStr(dblLoop)
    Debug.Print dblLoop

    Set objPushPin = Me.MappointControl1.ActiveMap.FindPushpin("IT:" & CStr(dblLoop))
    If Not (objPushPin Is Nothing) Then
    objPushPin.Select
    objPushPin.Delete
    End If
    DoEvents
    dblLat = dblLat - 0.001
    dblLoop = dblLoop + 1
    Wend
    Debug.Print "done"
    End Sub

    Private Sub Form_Load()
    Me.MappointControl1.NewMap geoMapNorthAmerica
    End Sub
    [/code]

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

    Knowledge Base

    I'm finding references to this as a "pure virtual reference call" when I search the Knowledge Base. Start here: http://support.microsoft.com/default...BHOWTO#faq1387 and just put in "R6025" where is says Search For.. good luck.
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    LarryD is offline Junior Member White Belt
    Join Date
    Jul 2002
    Posts
    2
    Hi Eric,
    thanks, I had checked out Microsoft for anything similar, didn't see much. Found some other non-Microsoft apps that report that error, so tried their fixes as well. (google hits etc.)
    There is a problem with mappoint in saving html files, the ms workaround is to close, wait, and reopen the map file. It's messy but it also resolved my problem.
    Changing the object location values instead of deleting and then creating at the new location also causes the error.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Runtime Mappoint
    By plevine1 in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 06-30-2006, 07:40 AM
  2. MapPoint 2004 and Visual Studio 2005 Runtime error
    By tizer001 in forum MapPoint Desktop Discussion
    Replies: 10
    Last Post: 02-26-2006, 09:51 AM
  3. Change Symbols @ runtime
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-10-2005, 10:22 AM
  4. Mappoint Runtime
    By Dazzer in forum Bing Maps and MapPoint Web Service
    Replies: 4
    Last Post: 09-30-2004, 12:21 PM
  5. Runtime Error 462
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-02-2004, 04:07 AM

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