Hi,
i have a windows mobile application written in c#, i want to add a code to this application so when it is installed on my mobile and before it starts it needs to check if there is already an instance of this application running , if so it terminates it .. plz can u help me to write a code to check all running processes then find my applicaton in windows mobile application ??!!
Loading

Sam HobbsRank #107 · 20.5K reputationPosted Jan 26, 2010, 7:43 AM EST
Also, after the "Application.Run(new Form1());" you need to also do the following :
That line is not important for small programs, but always use it anyway when using the above code that uses the Mutex.
Nora4 reputationPosted Jan 26, 2010, 9:40 PM EST
Mutex m = new Mutex(true, MutexName, out WasCreated);
do u have any idea why i'm i getting this error.
Thank you,
Monu Dhanda8 reputationPosted Sep 28, 2016, 9:05 PM EDT