Click here to Skip to main content
15,913,115 members
Home / Discussions / C#
   

C#

 
QuestionSave WebCam Capture with a resulution of 2MP Pin
nukebold19-Mar-09 4:55
nukebold19-Mar-09 4:55 
AnswerRe: Safe WebCam Capture with a resulution of 2MP Pin
musefan19-Mar-09 4:57
musefan19-Mar-09 4:57 
AnswerRe: Save WebCam Capture with a resulution of 2MP Pin
Dave Kreskowiak19-Mar-09 8:26
mveDave Kreskowiak19-Mar-09 8:26 
GeneralRe: Save WebCam Capture with a resulution of 2MP Pin
nukebold19-Mar-09 8:45
nukebold19-Mar-09 8:45 
GeneralRe: Save WebCam Capture with a resulution of 2MP Pin
Dave Kreskowiak19-Mar-09 11:01
mveDave Kreskowiak19-Mar-09 11:01 
Questionconvert class to dll Pin
sanforjackass19-Mar-09 4:42
sanforjackass19-Mar-09 4:42 
AnswerRe: convert class to dll Pin
DaveyM6919-Mar-09 4:44
professionalDaveyM6919-Mar-09 4:44 
GeneralRe: convert class to dll Pin
sanforjackass19-Mar-09 5:39
sanforjackass19-Mar-09 5:39 
AnswerRe: convert class to dll Pin
musefan19-Mar-09 4:44
musefan19-Mar-09 4:44 
AnswerRe: convert class to dll Pin
Cracked-Down19-Mar-09 5:29
Cracked-Down19-Mar-09 5:29 
QuestionSend an email witch c# Pin
abbd19-Mar-09 4:32
abbd19-Mar-09 4:32 
AnswerRe: Send an email witch c# Pin
Xmen Real 19-Mar-09 4:35
professional Xmen Real 19-Mar-09 4:35 
AnswerRe: Send an email witch c# Pin
Jacob Dixon19-Mar-09 4:36
Jacob Dixon19-Mar-09 4:36 
AnswerRe: Send an email witch c# Pin
musefan19-Mar-09 4:37
musefan19-Mar-09 4:37 
GeneralRe: Send an email witch c# Pin
Xmen Real 19-Mar-09 4:42
professional Xmen Real 19-Mar-09 4:42 
GeneralRe: Send an email witch c# Pin
musefan19-Mar-09 4:46
musefan19-Mar-09 4:46 
AnswerRe: Send an email witch c# Pin
Yusuf19-Mar-09 5:18
Yusuf19-Mar-09 5:18 
AnswerRe: Send an email witch c# Pin
Ivan Pavlenko20-Mar-09 3:30
Ivan Pavlenko20-Mar-09 3:30 
QuestionThreadsafe property Pin
Philip.F19-Mar-09 4:24
Philip.F19-Mar-09 4:24 
AnswerRe: Threadsafe property Pin
Roger Alsing19-Mar-09 4:36
Roger Alsing19-Mar-09 4:36 
AnswerRe: Threadsafe property Pin
Nicholas Butler19-Mar-09 4:38
sitebuilderNicholas Butler19-Mar-09 4:38 
This will not work if your intent is to synchronize access to the MyType instance. You are only holding the lock while getting the reference to the instance. You then return the instance to the calling code which may then use it without synchronization.

The solution depends on what the calling code does with the MyType instance. You could expose a synchronization object in the Manager class, but that is open to abuse. Or you could add methods for manipulating the instance through the Manager class and use locks in those methods. YMMV.

Nick

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Threadsafe property Pin
Philip.F19-Mar-09 5:04
Philip.F19-Mar-09 5:04 
GeneralRe: Threadsafe property Pin
Nicholas Butler19-Mar-09 6:58
sitebuilderNicholas Butler19-Mar-09 6:58 
AnswerRe: Threadsafe property Pin
led mike19-Mar-09 5:00
led mike19-Mar-09 5:00 
GeneralRe: Threadsafe property Pin
Philip.F19-Mar-09 5:05
Philip.F19-Mar-09 5:05 

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.