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

C#

 
GeneralRe: how to lock a method in class Pin
Heath Stewart2-Jan-05 21:18
protectorHeath Stewart2-Jan-05 21:18 
GeneralRe: how to lock a method in class Pin
ting6683-Jan-05 14:49
ting6683-Jan-05 14:49 
GeneralRe: how to lock a method in class Pin
Heath Stewart3-Jan-05 18:47
protectorHeath Stewart3-Jan-05 18:47 
Because it's executing within the same thread - not a different thread. Synchronization is not a replacement for state. You really should read Threading[^] in the .NET Framework SDK, as well as about the Monitor.Enter[^] method that the lock keyword (SyncLock in VB.NET) compiles to.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
QuestionIs this kind of encapsulation right for the event and delegate? Pin
Salil Khedkar30-Dec-04 20:00
Salil Khedkar30-Dec-04 20:00 
AnswerRe: Is this kind of encapsulation right for the event and delegate? Pin
Heath Stewart30-Dec-04 20:29
protectorHeath Stewart30-Dec-04 20:29 
GeneralRe: Is this kind of encapsulation right for the event and delegate? Pin
Salil Khedkar2-Jan-05 21:26
Salil Khedkar2-Jan-05 21:26 
Generalload values into the dataset form the xml Pin
dhol30-Dec-04 19:11
dhol30-Dec-04 19:11 
GeneralProgrammetically Selection of Language Pin
SoloVision30-Dec-04 18:22
SoloVision30-Dec-04 18:22 
GeneralRe: Programmetically Selection of Language Pin
Heath Stewart30-Dec-04 20:14
protectorHeath Stewart30-Dec-04 20:14 
Generalprogramticly scroll a richtextbox Pin
Tyrus18230-Dec-04 14:46
Tyrus18230-Dec-04 14:46 
GeneralRe: programticly scroll a richtextbox Pin
Heath Stewart30-Dec-04 20:06
protectorHeath Stewart30-Dec-04 20:06 
Generalusing non true type or open type fonts Pin
Tyrus18230-Dec-04 14:43
Tyrus18230-Dec-04 14:43 
Questionwhat is wrong here ? Pin
kings_130-Dec-04 11:38
kings_130-Dec-04 11:38 
AnswerRe: what is wrong here ? Pin
Heath Stewart30-Dec-04 12:06
protectorHeath Stewart30-Dec-04 12:06 
GeneralRe: what is wrong here ? Pin
kings_130-Dec-04 19:46
kings_130-Dec-04 19:46 
GeneralRe: what is wrong here ? Pin
Heath Stewart30-Dec-04 20:01
protectorHeath Stewart30-Dec-04 20:01 
GeneralRe: what is wrong here ? Pin
kings_131-Dec-04 0:59
kings_131-Dec-04 0:59 
GeneralRe: what is wrong here ? Pin
Heath Stewart31-Dec-04 6:10
protectorHeath Stewart31-Dec-04 6:10 
GeneralRe: what is wrong here ? Pin
kings_131-Dec-04 7:15
kings_131-Dec-04 7:15 
GeneralRe: what is wrong here ? Pin
Heath Stewart31-Dec-04 8:05
protectorHeath Stewart31-Dec-04 8:05 
GeneralHidden Window Screenshot Pin
eggie530-Dec-04 10:21
eggie530-Dec-04 10:21 
GeneralRe: Hidden Window Screenshot Pin
Heath Stewart30-Dec-04 11:53
protectorHeath Stewart30-Dec-04 11:53 
GeneralRe: Hidden Window Screenshot Pin
eggie530-Dec-04 16:40
eggie530-Dec-04 16:40 
GeneralRe: Hidden Window Screenshot Pin
Heath Stewart30-Dec-04 19:51
protectorHeath Stewart30-Dec-04 19:51 
Generalgenerate a random number of the bignumber Pin
asmyan30-Dec-04 9:18
asmyan30-Dec-04 9:18 

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.