MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MP process priority

This is a discussion on MP process priority within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using the MapPoint 2004 control in an application via interop from C#; when it is busy processing anything, ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-24-2005
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 8
MP process priority

I'm using the MapPoint 2004 control in an application via interop from C#; when it is busy processing anything, it completely wipes out the CPU. What I would like to do is programatically change the priority of the MapPoint process to "Low" after loading it, so that other desktop applications continue to respond. When I do this through the task manager (on the MapPoint.exe image), it all works fine, and has no significant (to me) effect on the performance of the MapPoint control.

I've been having difficulty doing this through C#; does anybody happen to have a snippet to do this? Preferably using "safe" and "managed" code, but if this isn't possible anything will do...

Thanks in advance,

Marc
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 03-24-2005
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 8
MP priority - fixed

Never mind... I found it... (ta to http://www.mp2kmag.com/mappoint/disc...pic.asp?t=6594)

System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("Map Point");

foreach (System.Diagnostics.Process process in processes) {
process.PriorityClass = System.Diagnostics.ProcessPriorityClass.Idle;
}
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 03-24-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,037
Hi,

Nice to see that the FAQ (witch is just started) is already usefull to solve additional problems
and also thanx for feedback, it benefit others also !
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


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
Mappoint as background process for Filemaker Pro App Anonymous MapPoint 2006/2009 Discussion 8 03-12-2008 01:04 PM
Waiting for shutdown of mappoint process Gauloisid MapPoint 2006/2009 Discussion 1 10-27-2003 07:46 AM
Is Batch Process Route Calculations Possible? Anonymous MapPoint 2006/2009 Discussion 1 09-19-2002 07:30 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
I'm in the process of upgrading our network from N.... Anonymous MapPoint 2006/2009 Discussion 1 10-15-2001 12:12 PM


All times are GMT -5. The time now is 08:09 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Flights Spain
Flights to Spain don't have to burn a hole in your pocket. Holiday Hypermarket can help you to find the latest great offers from a range of airlines.

Cyprus Weather
Check out Cyprus Weather - Travel Counsellors details information on Cyprus including, weather, flights and accommodation.

Cape Town Flights
Book Cape Town flights through dealchecker.co.uk to get a great deal. Cape Town has fantastic weather and a wide range of activities to keep you busy.

Cyprus Holidays
Cyprus holidays will offer you a wealth of activities all in the most beautiful surroundings. Relish the beauty of Cyprus on a short break.

Greece
Greece covers a large area and as a result there is an abundance of things to do, see and taste. You can relax on a beach, visit ancient sites or make a trip to one of the islands like Corfu, Crete or Rhodes.

Price Compare
Visit Travel.co.uk for and compare not only price, but also the wide variety of options available.

Holidays to Fuerteventura
Come on; jump on the plane to the Canary Islands. Get information on cheap holidays to Fuerteventura at On The Beach.


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