MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Runtime R6025 after 2004 iterations...

This is a discussion on Runtime R6025 after 2004 iterations... within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2002
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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-25-2002
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,482
Blog Entries: 1
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.
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-25-2002
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.
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

Tags
2004, iterations, r6025, runtime


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
Runtime Mappoint plevine1 MapPoint 2006/2009 Discussion 4 06-30-2006 08:40 AM
MapPoint 2004 and Visual Studio 2005 Runtime error tizer001 MapPoint 2006/2009 Discussion 10 02-26-2006 10:51 AM
Change Symbols @ runtime Anonymous MapPoint 2006/2009 Discussion 2 03-10-2005 11:22 AM
Mappoint Runtime Dazzer MapPoint Web Service and Virtual Earth 4 09-30-2004 01:21 PM
Runtime Error 462 Anonymous MapPoint 2006/2009 Discussion 0 09-02-2004 05:07 AM


All times are GMT -5. The time now is 01:04 AM.


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


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