MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to destroy all instances of MapPoint controls ?

This is a discussion on How to destroy all instances of MapPoint controls ? within the MapPoint 2006/2009 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 ...


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

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 12-21-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 12-21-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
have you tried this setting

Dim gappmp as new mappoint.application

gappmp.UserControl = false
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-25-2004
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Check the thread 'server busy problem', it answers your question
http://www.mp2kmag.com/mappoint/disc...pic.asp?t=5498
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-29-2004
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thank you very much Wilfried, for this !!!


Gonna try
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
controls, destroy, instances, mappoint


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


All times are GMT -5. The time now is 04:17 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


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