Click here to Skip to main content
15,908,834 members
Home / Discussions / C#
   

C#

 
GeneralRe: incorrect code kills program? Pin
harold aptroot17-Apr-09 9:18
harold aptroot17-Apr-09 9:18 
GeneralRe: incorrect code kills program? Pin
Luc Pattyn17-Apr-09 9:36
sitebuilderLuc Pattyn17-Apr-09 9:36 
The alternative problem situation is a race condition: say you start a very short thread and clear a flag (a bool or a ResetEvent) then wait for the flag getting set; whereas the right order would be clear the flag, start the thread, wait for the flag.
By optimizing stuff the thread becomes faster and may set the flag before you clear and then test it.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


GeneralRe: incorrect code kills program? Pin
harold aptroot17-Apr-09 9:58
harold aptroot17-Apr-09 9:58 
GeneralRe: incorrect code kills program? Pin
Luc Pattyn17-Apr-09 10:11
sitebuilderLuc Pattyn17-Apr-09 10:11 
GeneralRe: incorrect code kills program? Pin
harold aptroot17-Apr-09 10:15
harold aptroot17-Apr-09 10:15 
AnswerRe: Optimization kills program. Pin
S. Senthil Kumar18-Apr-09 9:46
S. Senthil Kumar18-Apr-09 9:46 
GeneralRe: Optimization kills program. Pin
harold aptroot18-Apr-09 11:02
harold aptroot18-Apr-09 11:02 
GeneralRe: Optimization kills program. Pin
S. Senthil Kumar18-Apr-09 21:27
S. Senthil Kumar18-Apr-09 21:27 
GeneralRe: Optimization kills program. Pin
harold aptroot19-Apr-09 0:55
harold aptroot19-Apr-09 0:55 
GeneralRe: Optimization kills program. Pin
S. Senthil Kumar19-Apr-09 1:11
S. Senthil Kumar19-Apr-09 1:11 
GeneralRe: Optimization kills program. Pin
harold aptroot19-Apr-09 1:13
harold aptroot19-Apr-09 1:13 
GeneralRe: Optimization kills program. Pin
S. Senthil Kumar19-Apr-09 1:19
S. Senthil Kumar19-Apr-09 1:19 
GeneralRe: Optimization kills program. Pin
harold aptroot19-Apr-09 1:30
harold aptroot19-Apr-09 1:30 
GeneralRe: Optimization kills program. Pin
S. Senthil Kumar19-Apr-09 1:49
S. Senthil Kumar19-Apr-09 1:49 
GeneralRe: Optimization kills program. Pin
harold aptroot19-Apr-09 1:51
harold aptroot19-Apr-09 1:51 
Questioncopy row from one datagridview to another Pin
behzadcp17-Apr-09 7:54
professionalbehzadcp17-Apr-09 7:54 
QuestionPDF button recognition in C# Windows App. [modified] Pin
Engineer Joe17-Apr-09 7:30
Engineer Joe17-Apr-09 7:30 
AnswerRe: PDF button recognition in C# Windows App. Pin
buachaill cliste17-Apr-09 9:07
buachaill cliste17-Apr-09 9:07 
GeneralRe: PDF button recognition in C# Windows App. Pin
Engineer Joe20-Apr-09 9:46
Engineer Joe20-Apr-09 9:46 
GeneralRe: PDF button recognition in C# Windows App. Pin
buachaill cliste20-Apr-09 10:33
buachaill cliste20-Apr-09 10:33 
QuestionFailing to read ExecutablePath Pin
IFDTCACT17-Apr-09 7:15
IFDTCACT17-Apr-09 7:15 
AnswerRe: Failing to read ExecutablePath Pin
Henry Minute17-Apr-09 8:19
Henry Minute17-Apr-09 8:19 
GeneralRe: Failing to read ExecutablePath Pin
Dave Kreskowiak17-Apr-09 9:31
mveDave Kreskowiak17-Apr-09 9:31 
GeneralRe: Failing to read ExecutablePath Pin
Henry Minute17-Apr-09 9:42
Henry Minute17-Apr-09 9:42 
AnswerRe: Failing to read ExecutablePath Pin
Dave Kreskowiak17-Apr-09 9:35
mveDave Kreskowiak17-Apr-09 9:35 

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.