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

MAPPOINT doesn't work as Window Service

This is a discussion on MAPPOINT doesn't work as Window Service within the MapPoint Desktop Discussion forums, part of the Map Forums category; I noticed that if you instance MapPointApplication from a Window Service (i.e. written in c#) you can't start more than ...

  1. #1
    michele is offline Junior Member Yellow Belt
    Join Date
    Oct 2005
    Posts
    13

    MAPPOINT doesn't work as Window Service

    I noticed that if you instance MapPointApplication from a Window Service (i.e. written in c#) you can't start more than 5 MapPoint Application objects.
    In other way, with the same code, if the application is a Windows Form Application I can run up 26 MapPoint instances at the same time.

    Does anyone know why?

    Thanx
    Michele

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Maybe the amount of free pool is more limited for a service than for a normal application ?

  3. #3
    michele is offline Junior Member Yellow Belt
    Join Date
    Oct 2005
    Posts
    13
    Quote Originally Posted by Wilfried
    Hi,

    Maybe the amount of free pool is more limited for a service than for a normal application ?
    I tried to change DCOM properties of MapPoint, setting authorization level on nothing and grantig permissions on the user of my windows service.
    For a moment (I don't know why) I instanced up to 10 MapPoint with my Windows Service so I thinked the problem was solved. One week later I tested the application but i found the problem not solved.

    I think the solution could be setting some proprerty on DCOM object, but I can't understand how to do it.

    Anyone has an idea?

  4. #4
    michele is offline Junior Member Yellow Belt
    Join Date
    Oct 2005
    Posts
    13
    Quote Originally Posted by michele
    Quote Originally Posted by Wilfried
    Hi,

    Maybe the amount of free pool is more limited for a service than for a normal application ?
    I tried to change DCOM properties of MapPoint, setting authorization level on nothing and grantig permissions on the user of my windows service.
    For a moment (I don't know why) I instanced up to 10 MapPoint with my Windows Service so I thinked the problem was solved. One week later I tested the application but i found the problem not solved.

    I think the solution could be setting some proprerty on DCOM object, but I can't understand how to do it.

    Anyone has an idea?

    Maybe found the solution!!!!

    http://support.microsoft.com/default...b;en-us;184802

    I changed 512kb (heap size for the window services) to the value reserved for interactive process and now works!!!

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Can you give feedback if it stay working as it probably should ?

  6. #6
    michele is offline Junior Member Yellow Belt
    Join Date
    Oct 2005
    Posts
    13
    Quote Originally Posted by Wilfried
    Hi,

    Can you give feedback if it stay working as it probably should ?
    Yes, it still works (I tried with a mixum of 9 users).

    I don't know I this setting can be create problems on other services.
    Anyone knows some problem that can cause changing the number of kilobytes of the non-interactive services heap?

    I will continue my test, if there are problems I will report them on the forum.

    Michele

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi MIchele,

    No I'm pretty sure your setting will not affect other services. Increasing the heap will only allow the service to allocate more of the pool. Tank you for feedback because it benefits otehrs.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Get host window messages
    By Th.M.Mädzulat in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-18-2006, 11:11 AM
  2. Solution: Server busy window after popup context menu.
    By Jeurink in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 04-06-2005, 01:32 PM
  3. Form with OleContainer disappears behind parent window
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-09-2004, 02:11 PM
  4. Getting the directions window back
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-01-2004, 03:59 PM
  5. Finding MapPoint Map Window Handle
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-04-2003, 09:05 AM

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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127