Click here to Skip to main content
15,920,956 members
Home / Discussions / C#
   

C#

 
GeneralRe: Advice needed (about creating a TextBox like control) Pin
J4amieC16-May-06 9:17
J4amieC16-May-06 9:17 
Questionmigration from 2003 to 2005 and right to left main menu Pin
xshift15-May-06 22:57
xshift15-May-06 22:57 
Questioncan not start debugging on web server Pin
V.V.Thakur15-May-06 22:15
V.V.Thakur15-May-06 22:15 
AnswerRe: can not start debugging on web server Pin
VMSSanthosh15-May-06 23:33
VMSSanthosh15-May-06 23:33 
Questionlock(??) Pin
InOut.NET15-May-06 21:36
InOut.NET15-May-06 21:36 
AnswerRe: lock(??) Pin
Guffa15-May-06 22:36
Guffa15-May-06 22:36 
GeneralRe: lock(??) Pin
InOut.NET15-May-06 22:48
InOut.NET15-May-06 22:48 
AnswerRe: lock(??) Pin
Guffa16-May-06 0:47
Guffa16-May-06 0:47 
A correction to my previous statement:

The lock statement doesn't lock the object per se, it only prevents the code in the lock statement (or any other lock statement using the same object) to be entered by another thread.

The object is only used as an identifier, so it doesn't matter what object you use if you only have one lock statement.

The lock statement calls System.Threading.Enter, which uses the Monitor class. A lock statement is the convenient form of:

try {
   System.Threading.Ender(theObject);
   ... lotsa code
} finally {
   System.Threading.Exit(theObject);
}



---
b { font-weight: normal; }

Questionvoice chat white by c# Pin
majid.jannesari15-May-06 21:12
majid.jannesari15-May-06 21:12 
AnswerRe: voice chat white by c# Pin
Colin Angus Mackay15-May-06 21:13
Colin Angus Mackay15-May-06 21:13 
AnswerRe: voice chat white by c# Pin
mav.northwind15-May-06 21:51
mav.northwind15-May-06 21:51 
QuestionCreating calendar in c# Pin
nauty15-May-06 20:52
nauty15-May-06 20:52 
AnswerRe: Creating calendar in c# Pin
coolestCoder15-May-06 21:13
coolestCoder15-May-06 21:13 
GeneralRe: Creating calendar in c# Pin
leppie15-May-06 22:20
leppie15-May-06 22:20 
GeneralRe: Creating calendar in c# Pin
nauty16-May-06 2:18
nauty16-May-06 2:18 
GeneralRe: Creating calendar in c# Pin
coolestCoder16-May-06 3:24
coolestCoder16-May-06 3:24 
AnswerRe: Creating calendar in c# Pin
leppie15-May-06 21:14
leppie15-May-06 21:14 
AnswerRe: Creating calendar in c# Pin
papa198015-May-06 21:32
papa198015-May-06 21:32 
Questionstring to char... Pin
Prinz Ryoiji15-May-06 20:49
Prinz Ryoiji15-May-06 20:49 
AnswerRe: string to char... Pin
coolestCoder15-May-06 21:04
coolestCoder15-May-06 21:04 
AnswerRe: string to char... Pin
Guffa15-May-06 21:28
Guffa15-May-06 21:28 
QuestionProblem Sending mail from C# Pin
coolestCoder15-May-06 20:44
coolestCoder15-May-06 20:44 
AnswerRe: Problem Sending mail from C# Pin
Corinna John15-May-06 21:35
Corinna John15-May-06 21:35 
GeneralRe: Problem Sending mail from C# Pin
V.V.Thakur15-May-06 22:11
V.V.Thakur15-May-06 22:11 
GeneralRe: Problem Sending mail from C# Pin
coolestCoder15-May-06 22:42
coolestCoder15-May-06 22:42 

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.