PDA

View Full Version : MAPPOINT doesn't work as Window Service



michele
10-12-2005, 08:25 AM
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

Wilfried
10-13-2005, 01:56 AM
Hi,

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

michele
10-13-2005, 02:20 AM
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?

michele
10-13-2005, 08:15 AM
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.aspx?scid=kb;en-us;184802

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

Wilfried
10-13-2005, 05:09 PM
Hi,

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

michele
10-14-2005, 02:32 AM
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

Wilfried
10-17-2005, 12:15 PM
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.