MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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,055
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


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 4 5 Days Ago 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 12:27 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

Ski Resorts
Choose from the comprehensive range of ski resorts at Holiday Hypermarket. Search for ski holidays online at Holiday Hypermarket to find ski holidays that are right for you.

Online Travel Agent
Travel Counsellors is a Queen's Award winning online Travel Agent. Book your travel online with one of our agents.

Canada Flights
Canada flights are great value flights when you visit dealchecker.co.uk first. Full of surprises, Canada is simply the most astonishingly beautiful country in the world.

Mauritius Holidays
Mauritis holidays are a sun drenched, sense tingling experience of a lifetime. You will find bargain deals on many holidays with us!

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

Travel Deals
Find the very best travel deals on your prime comparison site, Travel.co.uk

Cheap Holidays to Sharm el Sheikh
Break away to Northern Africa. Find cheap holidays to Sharm el Sheikh at On The Beach.


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