Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
AnswerRe: Effective Coding Style to build a Class Library Pin
Eddy Vluggen8-May-13 10:48
professionalEddy Vluggen8-May-13 10:48 
QuestionHelp with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 7:06
turbosupramk38-May-13 7:06 
AnswerRe: Help with mutex, cannot get mutex to work Pin
Jasmine25018-May-13 7:38
Jasmine25018-May-13 7:38 
GeneralRe: Help with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 7:49
turbosupramk38-May-13 7:49 
AnswerRe: Help with mutex, cannot get mutex to work Pin
Dave Kreskowiak8-May-13 8:10
mveDave Kreskowiak8-May-13 8:10 
GeneralRe: Help with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 8:31
turbosupramk38-May-13 8:31 
GeneralRe: Help with mutex, cannot get mutex to work Pin
Jasmine25018-May-13 8:35
Jasmine25018-May-13 8:35 
GeneralRe: Help with mutex, cannot get mutex to work Pin
Dave Kreskowiak8-May-13 8:53
mveDave Kreskowiak8-May-13 8:53 
Just because you see a technique all over the Internet does not mean that it applies to your situation.

From what I've seen in your code, it suggests you're trrying to make a single instance app. The code you have is not suited for that purpose at all. To make a single instance app, an application first tries to create a Mutex. If it's successfull, it's the first app instance running. If the creation of the Mutex fails, then you know your app is not the only instance running.

Follow the logic in your code snippet and you will see that it does not follow the logic I just laid out.

GeneralRe: Help with mutex, cannot get mutex to work Pin
turbosupramk310-May-13 1:58
turbosupramk310-May-13 1:58 
GeneralRe: Help with mutex, cannot get mutex to work Pin
Dave Kreskowiak10-May-13 2:17
mveDave Kreskowiak10-May-13 2:17 
Questionlogin authentication Pin
geo thomas8-May-13 0:08
professionalgeo thomas8-May-13 0:08 
AnswerRe: login authentication Pin
Sivaraman Dhamodharan8-May-13 0:22
Sivaraman Dhamodharan8-May-13 0:22 
GeneralRe: login authentication Pin
geo thomas8-May-13 0:30
professionalgeo thomas8-May-13 0:30 
GeneralRe: login authentication Pin
Dave Kreskowiak8-May-13 2:05
mveDave Kreskowiak8-May-13 2:05 
GeneralRe: login authentication Pin
geo thomas8-May-13 20:06
professionalgeo thomas8-May-13 20:06 
GeneralRe: login authentication Pin
Dave Kreskowiak9-May-13 1:37
mveDave Kreskowiak9-May-13 1:37 
GeneralRe: login authentication Pin
geo thomas9-May-13 19:00
professionalgeo thomas9-May-13 19:00 
Questionrunning asp.net website in a windows application Pin
mrkeivan7-May-13 22:25
mrkeivan7-May-13 22:25 
AnswerRe: running asp.net website in a windows application Pin
Dave Kreskowiak8-May-13 2:06
mveDave Kreskowiak8-May-13 2:06 
AnswerRe: running asp.net website in a windows application Pin
Abhinav S8-May-13 21:22
Abhinav S8-May-13 21:22 
QuestionIIS security settings and different permission Pin
ashabhatt27077-May-13 19:52
ashabhatt27077-May-13 19:52 
SuggestionRe: IIS security settings and different permission Pin
Richard MacCutchan7-May-13 21:14
mveRichard MacCutchan7-May-13 21:14 
Questionsave time with the desired date Pin
demoninside97-May-13 18:38
demoninside97-May-13 18:38 
AnswerRe: save time with the desired date Pin
demoninside97-May-13 20:05
demoninside97-May-13 20:05 
AnswerRe: save time with the desired date Pin
Richard MacCutchan7-May-13 21:06
mveRichard MacCutchan7-May-13 21:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.