MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth 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, it ...


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

Today's Posts Twitter Feed 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 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,177
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

Tags
priority, process


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 04:02 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!



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