Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralDrawing Numbers on a WinForm: Basics Pin
...---...19-Aug-05 11:28
...---...19-Aug-05 11:28 
GeneralXML Database Pin
surfman1919-Aug-05 11:02
surfman1919-Aug-05 11:02 
GeneralRe: XML Database Pin
rudy.net19-Aug-05 13:52
rudy.net19-Aug-05 13:52 
GeneralLock question Pin
Steve Messer19-Aug-05 10:59
Steve Messer19-Aug-05 10:59 
GeneralRe: Lock question Pin
Guffa19-Aug-05 22:19
Guffa19-Aug-05 22:19 
GeneralRe: Lock question Pin
Steve Messer20-Aug-05 4:58
Steve Messer20-Aug-05 4:58 
GeneralRe: Lock question Pin
Guffa20-Aug-05 13:31
Guffa20-Aug-05 13:31 
GeneralRe: Lock question Pin
Steve Messer20-Aug-05 13:48
Steve Messer20-Aug-05 13:48 
He is concerned that it might not be thread safe.

I know it seems picky. But this situation exists in a File logger and several threads have access to the log. He is worried that with multiple locks the logger will get into a dead-lock situation.

The MSDN info that you quoted is good enough for me. However, if I could have shown him in the documentation that each time you called ...Monitor.Start() on an object there was a mechanism for counting the references to the object being locked and likewise during calls to ...Monitor.End() if the docs stated that the number of references to the locked object was decremented he would have excepted that.

But the documention only states that you should ensure that you call End() for each time you call Start() which to him means that you can't be sure in a threaded environment that you won't have a dead-lock situation.


Thanks
GeneralRe: Lock question Pin
Guffa21-Aug-05 1:23
Guffa21-Aug-05 1:23 
GeneralRe: Lock question Pin
Steve Messer21-Aug-05 2:43
Steve Messer21-Aug-05 2:43 
GeneralGDI+ Paths and Regions Pin
mpastchenko19-Aug-05 8:39
mpastchenko19-Aug-05 8:39 
GeneralRe: GDI+ Paths and Regions Pin
mpastchenko19-Aug-05 11:37
mpastchenko19-Aug-05 11:37 
GeneralLabel Graph Tick Mark Axis, Mistake Pin
...---...19-Aug-05 7:09
...---...19-Aug-05 7:09 
GeneralRe: Label Graph Tick Mark Axis, Mistake Pin
...---...19-Aug-05 7:13
...---...19-Aug-05 7:13 
GeneralRe: Label Graph Tick Mark Axis, Mistake Pin
Guffa19-Aug-05 7:17
Guffa19-Aug-05 7:17 
QuestionHow2 assign specific class type to generic object type? Pin
Dennis McMahon19-Aug-05 7:08
Dennis McMahon19-Aug-05 7:08 
AnswerRe: How2 assign specific class type to generic object type? Pin
AndrewJMarshall19-Aug-05 7:36
AndrewJMarshall19-Aug-05 7:36 
GeneralRe: How2 assign specific class type to generic object type? Pin
Dennis McMahon19-Aug-05 8:01
Dennis McMahon19-Aug-05 8:01 
GeneralDataGrid bounded to a DataTable with composite key. Pin
miah alom19-Aug-05 6:55
miah alom19-Aug-05 6:55 
GeneralRe: DataGrid bounded to a DataTable with composite key. Pin
rudy.net19-Aug-05 13:35
rudy.net19-Aug-05 13:35 
GeneralRe: DataGrid bounded to a DataTable with composite key. Pin
miah alom21-Aug-05 6:01
miah alom21-Aug-05 6:01 
QuestionAUTO UPDATE?? Pin
cyrus_thevirus19-Aug-05 5:27
cyrus_thevirus19-Aug-05 5:27 
AnswerRe: AUTO UPDATE?? Pin
Mohamad Al Husseiny19-Aug-05 6:19
Mohamad Al Husseiny19-Aug-05 6:19 
GeneralRe: AUTO UPDATE?? Pin
cyrus_thevirus19-Aug-05 6:41
cyrus_thevirus19-Aug-05 6:41 
GeneralRe: AUTO UPDATE?? Pin
ekynox19-Aug-05 17:01
ekynox19-Aug-05 17:01 

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.