Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching System Drive for a file Pin
Colin Angus Mackay22-Mar-08 4:18
Colin Angus Mackay22-Mar-08 4:18 
GeneralRe: Searching System Drive for a file Pin
MNFlyer22-Mar-08 4:19
MNFlyer22-Mar-08 4:19 
Generalusing this as synchronization object Pin
George_George22-Mar-08 3:52
George_George22-Mar-08 3:52 
GeneralRe: using this as synchronization object [modified] Pin
girm22-Mar-08 4:01
girm22-Mar-08 4:01 
GeneralRe: using this as synchronization object Pin
George_George22-Mar-08 4:03
George_George22-Mar-08 4:03 
GeneralRe: using this as synchronization object Pin
Colin Angus Mackay22-Mar-08 4:09
Colin Angus Mackay22-Mar-08 4:09 
GeneralRe: using this as synchronization object Pin
George_George23-Mar-08 2:53
George_George23-Mar-08 2:53 
GeneralRe: using this as synchronization object Pin
girm22-Mar-08 4:09
girm22-Mar-08 4:09 
well, in my exemple NotPrivateClass , has potentially a public scope : some other class could access it

consider 'this' is an instance of NotPrivateClass (in the code you quoted) : someone else could access to the instance refercenced by this ("public scope is offered").

so if you use 'this' as the locking object , then someone else could do the same .. and that's not ggod .. for the deadlock reason I've given
GeneralRe: using this as synchronization object Pin
George_George23-Mar-08 2:54
George_George23-Mar-08 2:54 
GeneralRe: using this as synchronization object Pin
girm24-Mar-08 8:19
girm24-Mar-08 8:19 
GeneralRe: using this as synchronization object Pin
George_George24-Mar-08 19:01
George_George24-Mar-08 19:01 
GeneralRe: using this as synchronization object Pin
Colin Angus Mackay22-Mar-08 4:06
Colin Angus Mackay22-Mar-08 4:06 
GeneralRe: using this as synchronization object Pin
George_George23-Mar-08 2:51
George_George23-Mar-08 2:51 
GeneralRe: using this as synchronization object Pin
Colin Angus Mackay23-Mar-08 4:06
Colin Angus Mackay23-Mar-08 4:06 
GeneralRe: using this as synchronization object Pin
George_George23-Mar-08 4:17
George_George23-Mar-08 4:17 
QuestionHow do I create a subclass dynamically from a base class? [modified] Pin
loderxp22-Mar-08 2:57
loderxp22-Mar-08 2:57 
AnswerRe: How do I create a subclass dynamically from a base class? Pin
pmarfleet22-Mar-08 3:41
pmarfleet22-Mar-08 3:41 
Questionhow to search particular word Pin
sugunavathysubramanian22-Mar-08 1:04
sugunavathysubramanian22-Mar-08 1:04 
AnswerRe: how to search particular word Pin
Christian Graus22-Mar-08 11:43
protectorChristian Graus22-Mar-08 11:43 
GeneralRe: how to search particular word Pin
sugunavathysubramanian24-Mar-08 20:24
sugunavathysubramanian24-Mar-08 20:24 
GeneralRe: how to search particular word Pin
Christian Graus24-Mar-08 21:09
protectorChristian Graus24-Mar-08 21:09 
Generalsynchronization object choosing Pin
George_George22-Mar-08 0:36
George_George22-Mar-08 0:36 
GeneralRe: synchronization object choosing Pin
Colin Angus Mackay22-Mar-08 3:12
Colin Angus Mackay22-Mar-08 3:12 
GeneralRe: synchronization object choosing Pin
George_George22-Mar-08 3:28
George_George22-Mar-08 3:28 
GeneralRe: synchronization object choosing Pin
Colin Angus Mackay22-Mar-08 3:36
Colin Angus Mackay22-Mar-08 3:36 

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.