MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




How to properly close mappoint control

This is a discussion on How to properly close mappoint control within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, i'm having some issues with mappoint crashings randomly.. we are using the active X control.. here is how i'm ...


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

Today's Posts Twitter Feed 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 03-02-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
How to properly close mappoint control

Hi,
i'm having some issues with mappoint crashings randomly.. we are using the active X control..

here is how i'm creating the control:

Licenses.Add "MapPoint.Control", "Mappoint Control 9.0 Runtime License"
Set mobjMap = Controls.Add("MapPoint.Control", "mpcMap")

and this is how i'm closing everything.

mobjMap.object.ActiveMap.Saved = True
mobjMap.object.CloseMap
Set mobjMap = Nothing
Set mobjItem = Nothing
Set mobjPushPin = Nothing
Controls.Remove "mpcMap"

should i be doing something else?

rgds
chris

p.s. mobjMap is defined as VBControlExtender and this is because not all the developers have mappoint installed.. doing it this way means they don't need it to compile..
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 03-03-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi Chris,

I'm not sure, but I think these 2 hase to be the last ones in this exact sequence:

Code:
Set mobjMap = Nothing
Controls.Remove "mpcMap"
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
close, control, mappoint, properly


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
Registry settings not copied properly...What? Anonymous MapPoint 2006/2009 Discussion 5 09-02-2008 04:56 AM
Close the map Anonymous MapPoint 2006/2009 Discussion 4 07-09-2004 06:20 AM
Mappoint has encountered a problem and needs to close Anonymous MapPoint 2006/2009 Discussion 4 05-05-2004 03:40 PM
Data not updating properly in MapPoint Anonymous MapPoint 2006/2009 Discussion 0 06-26-2003 03:22 PM
Pause MapPoint Display (prevent close) Anonymous MapPoint 2006/2009 Discussion 0 10-29-2002 05:56 PM


All times are GMT -5. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!



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