MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




MAPPOINT doesn't work as Window Service

This is a discussion on MAPPOINT doesn't work as Window Service within the MapPoint 2006/2009 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 ...


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 10-12-2005
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
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 10-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

Maybe the amount of free pool is more limited for a service than for a normal application ?
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 10-13-2005
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-13-2005
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!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 10-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

Can you give feedback if it stay working as it probably should ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 10-14-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 10-17-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
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.
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
mappoint, service, window, work


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
Get host window messages Th.M.Mädzulat MapPoint 2006/2009 Discussion 0 06-18-2006 11:11 AM
Solution: Server busy window after popup context menu. Jeurink MapPoint 2006/2009 Discussion 6 04-06-2005 01:32 PM
Form with OleContainer disappears behind parent window Anonymous MapPoint 2006/2009 Discussion 0 12-09-2004 02:11 PM
Getting the directions window back Anonymous MapPoint 2006/2009 Discussion 2 04-01-2004 03:59 PM
Finding MapPoint Map Window Handle Anonymous MapPoint 2006/2009 Discussion 3 04-04-2003 09:05 AM


All times are GMT -5. The time now is 07:59 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

Taba Heights Holiday
Visit Egypt with your Taba Heights holiday. Book through UlookUbook and save!



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