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

.NET (Core and Framework)

 
AnswerRe: Why not use ngen.exe for all apps? Pin
Dave Kreskowiak16-Nov-05 16:30
mveDave Kreskowiak16-Nov-05 16:30 
AnswerRe: Why not use ngen.exe for all apps? Pin
rwestgraham17-Nov-05 19:18
rwestgraham17-Nov-05 19:18 
Questionproblem abt visual source safe database Pin
montu337716-Nov-05 4:17
montu337716-Nov-05 4:17 
QuestionFTP Download - please help Pin
SheenSylesh15-Nov-05 17:57
SheenSylesh15-Nov-05 17:57 
AnswerRe: FTP Download - please help Pin
Drew Stainton17-Nov-05 11:59
Drew Stainton17-Nov-05 11:59 
QuestionWindows service problem....urgent Pin
Vipul Mehta15-Nov-05 17:11
Vipul Mehta15-Nov-05 17:11 
AnswerRe: Windows service problem....urgent Pin
Christian Graus20-Nov-05 17:19
protectorChristian Graus20-Nov-05 17:19 
Questionlock statement and decimal type Pin
David Menéndez Cisterna15-Nov-05 7:33
David Menéndez Cisterna15-Nov-05 7:33 
Hello.
I'm trying to make a tread-safe class, by protecting read/write over its internal properties with locks, like this:

public void Set(string lats)
{
lock(this.LatS)
{
this.LatSex = lats;
}
}

public string Get()
{
string _aux;
lock(this.LatSex)
{
_aux = this.LatSex;
}
return _aux;
}

It does compile with strings, but not with decimal type... I cant figure why.

Does decimal time really need lock protection for thread-safe?
And what about strings and enumerations?

Thank you very much!!

AnswerRe: lock statement and decimal type Pin
Marc Clifton15-Nov-05 13:18
mvaMarc Clifton15-Nov-05 13:18 
GeneralRe: lock statement and decimal type Pin
David Menéndez Cisterna17-Nov-05 11:34
David Menéndez Cisterna17-Nov-05 11:34 
GeneralRe: lock statement and decimal type Pin
S. Senthil Kumar18-Nov-05 4:16
S. Senthil Kumar18-Nov-05 4:16 
GeneralRe: lock statement and decimal type Pin
S. Senthil Kumar18-Nov-05 4:18
S. Senthil Kumar18-Nov-05 4:18 
GeneralRe: lock statement and decimal type Pin
David Menéndez Cisterna18-Nov-05 4:32
David Menéndez Cisterna18-Nov-05 4:32 
QuestionCreate a ISAPI filter in .NET Pin
leejo12314-Nov-05 21:38
leejo12314-Nov-05 21:38 
QuestionProblems serializing a subclass of an ArrayList Pin
Skip.za13-Nov-05 3:07
Skip.za13-Nov-05 3:07 
QuestionProfile Switching? Pin
Eustov12-Nov-05 9:12
Eustov12-Nov-05 9:12 
QuestionSystem.Net.Sockets for reading IP packets? Pin
Tom Paluzzi11-Nov-05 4:47
Tom Paluzzi11-Nov-05 4:47 
AnswerRe: System.Net.Sockets for reading IP packets? Pin
S. Senthil Kumar13-Nov-05 19:03
S. Senthil Kumar13-Nov-05 19:03 
Questionforms.timer vs thread.timer Pin
David Menéndez Cisterna10-Nov-05 6:26
David Menéndez Cisterna10-Nov-05 6:26 
AnswerRe: forms.timer vs thread.timer Pin
S. Senthil Kumar10-Nov-05 19:04
S. Senthil Kumar10-Nov-05 19:04 
GeneralRe: forms.timer vs thread.timer Pin
David Menéndez Cisterna11-Nov-05 2:01
David Menéndez Cisterna11-Nov-05 2:01 
QuestionRetrieving Public Contacts from Outlook Pin
chrisrm9-Nov-05 20:29
chrisrm9-Nov-05 20:29 
QuestionUrgent help needed Pin
NityaKakkar9-Nov-05 19:14
NityaKakkar9-Nov-05 19:14 
AnswerRe: Urgent help needed Pin
S. Senthil Kumar13-Nov-05 19:06
S. Senthil Kumar13-Nov-05 19:06 
QuestionHELP!!!!!!!- How to decompile .DLL file to get source code back? Pin
vicky4579-Nov-05 14:28
vicky4579-Nov-05 14:28 

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.