|
-
November 18th, 2005, 11:59 AM
#5
Re: Single Instance of your app
Thanks for your responses.
I tried the second method suggested by Shuja Ali but the
if (siMutex.WaitOne(0, false))
causes the app to throw a "has encountered a problem and needs to close"
any ideas why?
Does it matter if my main is declared as such:
[MTAThread]
static void Main(string[] args)
{
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|