Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
QuestionPlaceholders in C#? Pin
Anonymous30-Oct-02 18:21
Anonymous30-Oct-02 18:21 
AnswerRe: Placeholders in C#? Pin
Steven Lyons30-Oct-02 19:44
Steven Lyons30-Oct-02 19:44 
AnswerRe: Placeholders in C#? Pin
Daniel Turini31-Oct-02 8:09
Daniel Turini31-Oct-02 8:09 
Questionwhy a referenced dll can not check out??? Pin
fftongzhi30-Oct-02 15:40
fftongzhi30-Oct-02 15:40 
AnswerRe: why a referenced dll can not check out??? Pin
Daniel Turini31-Oct-02 8:04
Daniel Turini31-Oct-02 8:04 
GeneralRe: why a referenced dll can not check out??? Pin
fftongzhi31-Oct-02 14:27
fftongzhi31-Oct-02 14:27 
GeneralIndexer problem Pin
nothign12312330-Oct-02 11:31
nothign12312330-Oct-02 11:31 
GeneralStrange Mutex Behavior Pin
EricK730-Oct-02 9:26
sussEricK730-Oct-02 9:26 
I have an application that creates a Mutex before calling Application.Run. With a call of Mutex.WaitOne(1, True) I check to see if it is blocking. If it is blocked that means there is another instance of the application already running so I exit, and if it is not blocked then I continue executing the application.

The debug build works as expected: the first call to my executable loads and displays the MainForm with subsequent calls to the executable quiting after realizing it is blocked. However, the release build does not work correctly. Subsequent runs of th executable do not get block, and I end up with multiple instances of the application running simulataneously.

I have no DEBUG conditional or specified code. With some testing I was able to figure out that if I turned off compiler optimizations and turned on the generation of debugging information, the release mode would work as expected.

Anyone know what could be causing this strange bahavior? Do Mutexes behave differently under different project configuration properties?

Thanks for any help or ideas.
GeneralRe: Strange Mutex Behavior Pin
EricK730-Oct-02 11:17
sussEricK730-Oct-02 11:17 
GeneralRe: Strange Mutex Behavior Pin
Richard Deeming30-Oct-02 23:50
mveRichard Deeming30-Oct-02 23:50 
GeneralRe: Strange Mutex Behavior Pin
EricK731-Oct-02 3:40
sussEricK731-Oct-02 3:40 
GeneralInitiateComponents() Pin
Donald Blachly30-Oct-02 4:05
Donald Blachly30-Oct-02 4:05 
GeneralRe: InitiateComponents() Pin
Stephane Rodriguez.30-Oct-02 4:18
Stephane Rodriguez.30-Oct-02 4:18 
GeneralRe: InitiateComponents() Pin
James T. Johnson30-Oct-02 4:28
James T. Johnson30-Oct-02 4:28 
GeneralRe: InitializeComponent() Pin
Donald Blachly30-Oct-02 13:32
Donald Blachly30-Oct-02 13:32 
GeneralRe: InitializeComponent() Pin
James T. Johnson30-Oct-02 13:36
James T. Johnson30-Oct-02 13:36 
GeneralRe: InitiateComponents() Pin
Senkwe Chanda31-Oct-02 1:54
Senkwe Chanda31-Oct-02 1:54 
General2 questions Pin
Anonymous29-Oct-02 19:12
Anonymous29-Oct-02 19:12 
GeneralRe: 2 questions Pin
David Stone29-Oct-02 19:58
sitebuilderDavid Stone29-Oct-02 19:58 
GeneralRe: 2 questions Pin
Nnamdi Onyeyiri29-Oct-02 20:51
Nnamdi Onyeyiri29-Oct-02 20:51 
GeneralRe: 2 questions Pin
David Stone30-Oct-02 16:28
sitebuilderDavid Stone30-Oct-02 16:28 
GeneralRe: 2 questions Pin
Nnamdi Onyeyiri31-Oct-02 5:14
Nnamdi Onyeyiri31-Oct-02 5:14 
GeneralRe: 2 questions Pin
Paul Riley29-Oct-02 23:13
Paul Riley29-Oct-02 23:13 
Questionhow to list all the PCs within a group using Active Directory?? Pin
Wang Kaiming29-Oct-02 19:02
Wang Kaiming29-Oct-02 19:02 
AnswerRe: how to list all the PCs within a group using Active Directory?? Pin
Mazdak30-Oct-02 0:07
Mazdak30-Oct-02 0:07 

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.