Multiple mappoint processes with Delphi 6

dradey
01-14-2005, 09:12 AM
I have written a application in Delphi 6. On one form, I use a Ole Container to dispaly map point, to plot pin pushes for sales appointments. On another form I use mappoint in the background to calculate distances between two points. There is always two versions of the program running, to accomidate two divisions of the company. This does the job ok. However, because this causes four instances of mappoint to run in the background, it a drain on system resources. Is there a way to limit the number of running processes, perhaps by running a program of the server.


Thank you

Mark

Wilfried
01-14-2005, 11:04 AM
Hi,

No with 2 mappoint objects and 2 instances of the program you always will have 4 mappoin.exe in background.

However. You can make a separate class to interface with mappoint.exe and with public methods for your other forms. Or you can make a dll whitch then can be used by the 2 instances of the program. Or a server program that deal with mappoint and clients can talk tough it with middleware architeture.

dradey
01-18-2005, 07:00 AM
Thank you for your reply. How do go about writing a middleware application(s), is there any web sites which can help me

Wilfried
01-18-2005, 12:55 PM
Hi,

I have middleware developed in Delphi 5. The server make some classes and published methods that clients can use. You could use it probably for the calculation but also for other things. I never published the code because I did not have the time :(

If you want to try it then please email me private and I send you the source. You may have it free. If you ever get rich from it then give me a part of the treasure :)

 
Web mp2kmag.com
mapforums.com