Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

How to properly close mappoint control

This is a discussion on How to properly close mappoint control within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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..

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Registry settings not copied properly...What?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 09-02-2008, 05:56 AM
  2. Close the map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 07-09-2004, 07:20 AM
  3. Mappoint has encountered a problem and needs to close
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 05-05-2004, 04:40 PM
  4. Data not updating properly in MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-26-2003, 04:22 PM
  5. Pause MapPoint Display (prevent close)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-29-2002, 06:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96