Community of VE/MapPoint Users and Developers
This is a discussion on Finding MapPoint process within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have several istances of MapPoint.exe running at the same time, each one corresponding to one instance of a ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Finding MapPoint process I need it so that I could trac memory usage. |
| |||
| Re: Finding MapPoint process
Hi, When you create the mappoint application the windows handle is returned. You could keep track of it. Remember windows handles are exclusive but not exclusive in time. If application shut down then the same handle can be something else a while later.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Finding MapPoint process Quote:
Code: MapPoint.ApplicationClass app= new MapPoint.ApplicationClass(); |
| |||
| Re: Finding MapPoint process
Hi, app is exclusive address to the object. So you can use the app variable.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Finding MapPoint process
Hi, I'm not sure. Code: Process[] processes = Process.GetProcessesByName("MapPoint");
foreach (Process proc in processes)
if (proc.Handle == app) Second thing is the memory application. proc has several properties for that. PagedMemorySize, NonPagedMemorySize etc...
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Finding MapPoint process Quote:
So, maybe, this workaround is the best that can be done. Code: Process thisProcess = Process.GetCurrentProcess();
app.Caption = thisProcess.Id.ToString();
Process[] procesi = Process.GetProcessesByName("MapPoint");
foreach (Process p in procesi)
{
if (p.MainWindowTitle == "Map - "+thisProcess.Id.ToString())
{
//p is the one
}
} |
| |||
| Re: Finding MapPoint process
Hi, Quote:
I dont know if there is other / simpler solution as the one you do. But seems ok if it works of course.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappoint as background process for Filemaker Pro App | Anonymous | MapPoint 2006/2009 Discussion | 8 | 03-12-2008 01:04 PM |
| Closing: MapPoint process stilll running | MD2000 | MapPoint 2006/2009 Discussion | 4 | 04-29-2005 08:58 AM |
| MP process priority | mgravell | MapPoint 2006/2009 Discussion | 2 | 03-24-2005 12:38 PM |
| Waiting for shutdown of mappoint process | Gauloisid | MapPoint 2006/2009 Discussion | 1 | 10-27-2003 07:46 AM |
| I am new to map point. I am in the process of doi.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-01-2002 02:09 PM |
Ski Holidays Austria
Ski holidays in Austria offer ski schools for all types of skiers. They range from beginner classes of all ages to more advanced classes. Learn new techniques and refresh skills.
Travel Counselors
Travel Counselors are an award winning Travel Agent. Why not have a personal Travel Counselor help with your travel plans.
Holidays Jamaica
Holidays to Jamaica are a great way to immerse yourself in a different culture. Soak up some sun, indulge in some shopping, and relax at a beach resort. Use dealchecker.co.uk.
Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!
Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.
Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.
Cheap holidays to Portugal
Enjoy a spectacular country at a fraction of the cost. Find information on cheap holidays to Portugal at On The Beach.