Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to properly close mappoint control 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.. |
| |||
|
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"
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| close, control, mappoint, properly |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!