Click here to Skip to main content
15,920,383 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Need to kill thread when application is closed Pin
Luc Pattyn29-Mar-11 2:24
sitebuilderLuc Pattyn29-Mar-11 2:24 
QuestionLoad Report Failed is coming if i run Windows application exe in Windows 7 OS but it is working fine in Windows XP [modified] Pin
sr15928-Mar-11 23:17
sr15928-Mar-11 23:17 
AnswerRe: Load Report Failed is coming in Windows application in Windows 7 OS but it is working fine in Windows XP Pin
Dave Kreskowiak29-Mar-11 2:00
mveDave Kreskowiak29-Mar-11 2:00 
GeneralRe: Load Report Failed is coming in Windows application in Windows 7 OS but it is working fine in Windows XP Pin
sr15929-Mar-11 2:47
sr15929-Mar-11 2:47 
GeneralRe: Load Report Failed is coming in Windows application in Windows 7 OS but it is working fine in Windows XP Pin
Dave Kreskowiak29-Mar-11 12:26
mveDave Kreskowiak29-Mar-11 12:26 
AnswerRe: Load Report Failed is coming if i run Windows application exe in Windows 7 OS but it is working fine in Windows XP Pin
Bernhard Hiller31-Mar-11 22:44
Bernhard Hiller31-Mar-11 22:44 
QuestionSlow property initialization and thread safety Pin
Bernhard Hiller27-Mar-11 20:43
Bernhard Hiller27-Mar-11 20:43 
AnswerRe: Slow property initialization and thread safety Pin
Luc Pattyn27-Mar-11 22:48
sitebuilderLuc Pattyn27-Mar-11 22:48 
replacing lock-test by test-lock-test is a typical pattern to avoid the lock most of the time.
volatile is required to avoid the second test to rely on stale data kept around from the first test.

Bernhard Hiller wrote:
But volatile costs a lot of performance

No it does not. All it does is say: go fetch that variable again, don't use a local copy you happen to have around, use the real thing. There is no system call involved, no lock mechanism, nothing. It is just referencing the intended class member.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Slow property initialization and thread safety Pin
Bernhard Hiller28-Mar-11 20:14
Bernhard Hiller28-Mar-11 20:14 
GeneralRe: Slow property initialization and thread safety Pin
Luc Pattyn28-Mar-11 22:05
sitebuilderLuc Pattyn28-Mar-11 22:05 
AnswerRe: Slow property initialization and thread safety Pin
davidnz28-Mar-11 0:34
davidnz28-Mar-11 0:34 
GeneralRe: Slow property initialization and thread safety [modified] Pin
Not Active28-Mar-11 18:13
mentorNot Active28-Mar-11 18:13 
GeneralRe: Slow property initialization and thread safety Pin
davidnz28-Mar-11 20:16
davidnz28-Mar-11 20:16 
GeneralRe: Slow property initialization and thread safety Pin
Bernhard Hiller28-Mar-11 20:19
Bernhard Hiller28-Mar-11 20:19 
GeneralRe: Slow property initialization and thread safety Pin
davidnz28-Mar-11 20:23
davidnz28-Mar-11 20:23 
QuestionFatal Execution Engine Error while trying to run .net exe Pin
surender.m22-Mar-11 20:38
surender.m22-Mar-11 20:38 
AnswerRe: Fatal Execution Engine Error while trying to run .net exe Pin
Pete O'Hanlon22-Mar-11 23:04
mvePete O'Hanlon22-Mar-11 23:04 
GeneralRe: Fatal Execution Engine Error while trying to run .net exe Pin
surender.m22-Mar-11 23:52
surender.m22-Mar-11 23:52 
GeneralRe: Fatal Execution Engine Error while trying to run .net exe Pin
Pete O'Hanlon23-Mar-11 0:01
mvePete O'Hanlon23-Mar-11 0:01 
GeneralRe: Fatal Execution Engine Error while trying to run .net exe Pin
surender.m23-Mar-11 0:30
surender.m23-Mar-11 0:30 
GeneralRe: Fatal Execution Engine Error while trying to run .net exe Pin
Pete O'Hanlon23-Mar-11 0:42
mvePete O'Hanlon23-Mar-11 0:42 
AnswerRe: Fatal Execution Engine Error while trying to run .net exe Pin
Prasanta_Prince15-Apr-11 0:17
Prasanta_Prince15-Apr-11 0:17 
QuestionBest practices on Generics (in .NET 4.0)? Pin
Sander Rossel22-Mar-11 11:09
professionalSander Rossel22-Mar-11 11:09 
AnswerRe: Best practices on Generics (in .NET 4.0)? Pin
DaveyM6922-Mar-11 12:07
professionalDaveyM6922-Mar-11 12:07 
GeneralRe: Best practices on Generics (in .NET 4.0)? Pin
Sander Rossel24-Mar-11 1:15
professionalSander Rossel24-Mar-11 1:15 

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.