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

MP process priority

This is a discussion on MP process priority within the MapPoint Desktop 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 ...

  1. #1
    mgravell is offline 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

  2. #2
    mgravell is offline 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;
    }

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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 !

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint as background process for Filemaker Pro App
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 03-12-2008, 02:04 PM
  2. Waiting for shutdown of mappoint process
    By Gauloisid in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-27-2003, 08:46 AM
  3. Is Batch Process Route Calculations Possible?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-19-2002, 08:30 AM
  4. I am new to map point. I am in the process of doi....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-01-2002, 03:09 PM
  5. I'm in the process of upgrading our network from N....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-15-2001, 01:12 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 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 60 61 62 63 64 65 66