MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




memory leak with objloc.goto?

This is a discussion on memory leak with objloc.goto? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a simple app that just refreshes on command a new location on the map. As i click the ...


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-25-2003
Junior Member
White Belt
 
Join Date: Jul 2003
Posts: 1
Send a message via AIM to mzupan
memory leak with objloc.goto?

I have a simple app that just refreshes on command a new location on the map. As i click the button the mappoint process grows and grows.. can anyone see a problem in my code or is this a mappoint problem since it shouldnt be refreshed in under 15 seconds

Code:
Dim newlat
Dim newlong
Dim zoom
Dim objpushpin As MapPointCtl.Pushpin
Dim objLoc As MapPointCtl.Location
Dim objMap As MapPointCtl.Map


Private Sub Command1_Click()
    newlat = newlat + 0.0008
    newlong = newlong + 0.0008
    
    Set objMap = MappointControl1.ActiveMap
    Set objLoc = objMap.GetLocation(newlat, newlong, zoom)
    Set objpushpin.Location = objLoc
    objLoc.GoTo
    
    Set objMap = Nothing
    Set objLoc = Nothing
End Sub

Public Sub Form_Load()

    MappointControl1.NewMap 1
    
    Set objMap = MappointControl1.ActiveMap
    
    newlat = 42.67986
    newlong = -73.696918
    zoom = 1
    
    Set objLoc = objMap.GetLocation(newlat, newlong, zoom)
    Set objpushpin = objMap.AddPushpin(objLoc, "Current Location")
    objpushpin.Symbol = 82
    objLoc.GoTo
    
    Set objMap = Nothing
    Set objLoc = Nothing
    
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
  #2 (permalink)  
Old 08-02-2003
Junior Member
White Belt
 
Join Date: Aug 2003
Posts: 2
Re: memory leak with objloc.goto?

Yep...I've noticed this too ... except I update every second and MapPoint eats up 4K every second. No response from Microsoft however ... perhaps this will be addressed in next version?



Quote:
Originally Posted by mzupan
I have a simple app that just refreshes on command a new location on the map. As i click the button the mappoint process grows and grows.. can anyone see a problem in my code or is this a mappoint problem since it shouldnt be refreshed in under 15 seconds

Code:
Dim newlat
Dim newlong
Dim zoom
Dim objpushpin As MapPointCtl.Pushpin
Dim objLoc As MapPointCtl.Location
Dim objMap As MapPointCtl.Map


Private Sub Command1_Click()
    newlat = newlat + 0.0008
    newlong = newlong + 0.0008
    
    Set objMap = MappointControl1.ActiveMap
    Set objLoc = objMap.GetLocation(newlat, newlong, zoom)
    Set objpushpin.Location = objLoc
    objLoc.GoTo
    
    Set objMap = Nothing
    Set objLoc = Nothing
End Sub

Public Sub Form_Load()

    MappointControl1.NewMap 1
    
    Set objMap = MappointControl1.ActiveMap
    
    newlat = 42.67986
    newlong = -73.696918
    zoom = 1
    
    Set objLoc = objMap.GetLocation(newlat, newlong, zoom)
    Set objpushpin = objMap.AddPushpin(objLoc, "Current Location")
    objpushpin.Symbol = 82
    objLoc.GoTo
    
    Set objMap = Nothing
    Set objLoc = Nothing
    
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

Tags
leak, memory, objlocgoto


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
Memory leak - Bulk calculates bigderek MapPoint 2006/2009 Discussion 7 10-08-2008 07:50 AM
Memory leaks in MapPoint rbarthels MapPoint 2006/2009 Discussion 2 01-27-2004 05:53 PM
Location.Goto functionality, for freeform shapes? Geomancer MapPoint 2006/2009 Discussion 1 12-16-2003 08:42 AM
Mappoint and VB.NET: Horrible Memory Usage mrobold MapPoint 2006/2009 Discussion 2 11-12-2003 06:16 PM
Huge memory leak in using QueryShape? random0000 MapPoint 2006/2009 Discussion 2 03-28-2003 06:22 AM


All times are GMT -5. The time now is 09:17 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