![]() |
How to limit the number of instances of an application.
I am writing a simple folder watch service using C#.
This will monitor a folder for a .xml file and launch another application with that file as input parameter. Currently, in its vanilla flavour, it launchees the other application as soon as a file is dropped in the hot folder. This happens even when one file is being processed. Is there a way I can limit the number of instances of the other application launched by the service? Regards. |
Hi there
you can get acknowledge from apps. |
Do you want to run the App as single instance. Please refer http://dotnetdud.blogspot.in/2007/12...es-of-net.html
Cheers Shasur |
Solution
Hi,
I have solved this problem by using a Mutex and limiting the number to 1. Regards. |
i don't know about C# but i have good knowledge about C++ and want to get more and more rtm homes saskatchewan.
|
| All times are GMT -4. The time now is 02:51 PM. |
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.