Click here to Skip to main content
14,663,866 members
Home » Discussions » C#
   

C#

 
GeneralRe: normalize URL Pin
George_George31-Jul-08 0:59
MemberGeorge_George31-Jul-08 0:59 
QuestionDynamic Accessibility Pin
DaveyM6931-Jul-08 0:12
professionalDaveyM6931-Jul-08 0:12 
QuestionShare point problem Pin
manju#12330-Jul-08 23:45
Membermanju#12330-Jul-08 23:45 
GeneralRe: Share point problem Pin
Simon P Stevens31-Jul-08 0:06
MemberSimon P Stevens31-Jul-08 0:06 
GeneralRe: Share point problem Pin
manju#12331-Jul-08 0:31
Membermanju#12331-Jul-08 0:31 
QuestionRecord Audio from Internet Explorer Pin
Malenko30-Jul-08 23:28
MemberMalenko30-Jul-08 23:28 
QuestionA quick question about volatile Pin
Megidolaon30-Jul-08 23:27
MemberMegidolaon30-Jul-08 23:27 
AnswerRe: A quick question about volatile Pin
Guffa30-Jul-08 23:44
MemberGuffa30-Jul-08 23:44 
Megidolaon wrote:
Does that mean normal variables are cached and to optimize speed, the cached value is used unless the variable is changed in the current thread?


Yes, sometimes.

Megidolaon wrote:
And volatile means, that no cached values are used but before every operation, the value of the variable is read again?


Yes.

Megidolaon wrote:
BUT, what about larger variables, like long or even objects?
Wouldn't it still be possible that while one thread reads the first byte of a long, another thread writes the second byte?


Yes. Accessing a long is not guaranteed to be atomic.

To read larger types atomically, use the methods in the Interlocked class.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: A quick question about volatile Pin
Mike Dimmick31-Jul-08 0:13
MemberMike Dimmick31-Jul-08 0:13 
AnswerRe: A quick question about volatile Pin
Megidolaon31-Jul-08 1:11
MemberMegidolaon31-Jul-08 1:11 
GeneralRe: A quick question about volatile Pin
Mike Dimmick31-Jul-08 1:32
MemberMike Dimmick31-Jul-08 1:32 
GeneralRe: A quick question about volatile Pin
Guffa31-Jul-08 1:37
MemberGuffa31-Jul-08 1:37 
AnswerRe: A quick question about volatile Pin
Megidolaon31-Jul-08 1:59
MemberMegidolaon31-Jul-08 1:59 
QuestionHow to insert a new row to MDB file [modified] Pin
Admin88730-Jul-08 21:53
MemberAdmin88730-Jul-08 21:53 
AnswerRe: How to insert a new row to MDB file Pin
leppie30-Jul-08 22:41
Memberleppie30-Jul-08 22:41 
AnswerRe: How to insert a new row to MDB file Pin
rah_sin30-Jul-08 22:42
professionalrah_sin30-Jul-08 22:42 
QuestionSetup with Custom Action Pin
Sifar - 030-Jul-08 21:45
MemberSifar - 030-Jul-08 21:45 
AnswerRe: Setup with Custom Action Pin
leppie30-Jul-08 22:43
Memberleppie30-Jul-08 22:43 
AnswerRe: Setup with Custom Action Pin
Frank Horn30-Jul-08 23:17
MemberFrank Horn30-Jul-08 23:17 
Questionproblem_details to solve the warning Pin
ktamanna30-Jul-08 21:42
Memberktamanna30-Jul-08 21:42 
AnswerRe: problem_details to solve the warning Pin
leppie30-Jul-08 22:44
Memberleppie30-Jul-08 22:44 
QuestionHow to resize the form at run time on load Pin
tasumisra30-Jul-08 21:32
Membertasumisra30-Jul-08 21:32 
AnswerRe: How to resize the form at run time on load Pin
Syed Shahid Hussain30-Jul-08 22:32
MemberSyed Shahid Hussain30-Jul-08 22:32 
GeneralRe: How to resize the form at run time on load Pin
tasumisra30-Jul-08 23:04
Membertasumisra30-Jul-08 23:04 
GeneralRe: How to resize the form at run time on load Pin
Syed Shahid Hussain31-Jul-08 17:39
MemberSyed Shahid Hussain31-Jul-08 17:39 

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.