Stop Multiple Instances
-
Hey Guys How do i check for whether an instance of my program is already running so that i can then stop another one being started. Cheers Peter
-
Hey Guys How do i check for whether an instance of my program is already running so that i can then stop another one being started. Cheers Peter
-
Hey Guys How do i check for whether an instance of my program is already running so that i can then stop another one being started. Cheers Peter
I think one way is to use
FindWindow()
and use your window class,if it find it then do not attempt your application to proceed. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd -
Hey Guys How do i check for whether an instance of my program is already running so that i can then stop another one being started. Cheers Peter
Short Solution – Use a mutex Long Solution – Joe Newcomer’s brilliant article
The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday
-
Hey Guys How do i check for whether an instance of my program is already running so that i can then stop another one being started. Cheers Peter
See this article. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com