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 5 of 5

How to destroy all instances of MapPoint controls ?

This is a discussion on How to destroy all instances of MapPoint controls ? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have programmed an application that uses the MapPoint Control 2002. When I exit the application, there's always MapPoint.exe that ...

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

    How to destroy all instances of MapPoint controls ?

    I have programmed an application that uses the MapPoint Control 2002.

    When I exit the application, there's always MapPoint.exe that goes on running in background, so the next time I start my application, this one does not work anymore...

    Is there a way to destroy all instances of MapPoint.exe when I quit my main application ?

    Thank you

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    have you tried this setting

    Dim gappmp as new mappoint.application

    gappmp.UserControl = false

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I just try the following code in C#. It will kill all mappoint.exe instances on the manine.

    Code:
                Process[] processes = Process.GetProcessesByName("MapPoint");
                foreach (Process proc in processes)
                    proc.Kill();
    however be aware that if a user opens a mappoint, then it will be killed also If your applicaton behave nice then all mappoint instances will be removed also without you do this

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thank you very much Wilfried, for this !!!


    Gonna try

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sample Excel Calling MapPoint's ActiveX Controls (VBA+VSTO)
    By anassar in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-14-2005, 04:13 PM
  2. Multiple instances of MapPoint Control ?
    By tfmiltz in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-05-2005, 01:57 PM
  3. Mappoint controls requiring Run CD
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 05-15-2003, 12:23 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