Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
QuestionDetermine device type using IP Pin
lachu00912-May-09 18:19
lachu00912-May-09 18:19 
AnswerRe: Determine device type using IP Pin
Rajdeep.NET is BACK12-May-09 18:52
Rajdeep.NET is BACK12-May-09 18:52 
AnswerRe: Determine device type using IP Pin
Fatbuddha 112-May-09 22:12
Fatbuddha 112-May-09 22:12 
AnswerRe: Determine device type using IP Pin
OriginalGriff12-May-09 23:03
mveOriginalGriff12-May-09 23:03 
QuestionTryEnter always return true in Timer Event Pin
geossl12-May-09 17:40
geossl12-May-09 17:40 
AnswerRe: TryEnter always return true in Timer Event Pin
N a v a n e e t h12-May-09 18:23
N a v a n e e t h12-May-09 18:23 
AnswerRe: TryEnter always return true in Timer Event Pin
OriginalGriff12-May-09 22:42
mveOriginalGriff12-May-09 22:42 
AnswerRe: TryEnter always return true in Timer Event Pin
Nicholas Butler12-May-09 23:18
sitebuilderNicholas Butler12-May-09 23:18 
TryEnter always succeeds because you are always calling it on the same ( UI ) thread and Monitor is reentrant.

Your MessageBox doesn't totally block the UI thread. It runs a partial message loop and one of the messages it processes is the Windows.Forms.Timer message. Therefore, when the next tick happens, your handler is run again from inside the MessageBox message loop. TryEnter succeeds because the UI thread already owns the lock and Monitor allows a thread to lock an object multiple times.

Nick

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

QuestionConvert From VB.Net to C # Project Pin
misCafe12-May-09 17:07
misCafe12-May-09 17:07 
AnswerRe: Convert From VB.Net to C # Project Pin
Dave Kreskowiak12-May-09 17:22
mveDave Kreskowiak12-May-09 17:22 
GeneralRe: Convert From VB.Net to C # Project Pin
misCafe12-May-09 17:35
misCafe12-May-09 17:35 
QuestionUsing richtextbox as output Pin
Quake2Player12-May-09 16:53
Quake2Player12-May-09 16:53 
AnswerRe: Using richtextbox as output Pin
Dave Kreskowiak12-May-09 17:21
mveDave Kreskowiak12-May-09 17:21 
Questioninheriting varibles from within a class Pin
antrock10112-May-09 16:03
antrock10112-May-09 16:03 
AnswerRe: inheriting varibles from within a class Pin
Luc Pattyn12-May-09 16:45
sitebuilderLuc Pattyn12-May-09 16:45 
GeneralRe: inheriting varibles from within a class Pin
antrock10112-May-09 16:55
antrock10112-May-09 16:55 
GeneralRe: inheriting varibles from within a class Pin
Luc Pattyn12-May-09 17:15
sitebuilderLuc Pattyn12-May-09 17:15 
GeneralRe: inheriting varibles from within a class Pin
antrock10112-May-09 17:17
antrock10112-May-09 17:17 
AnswerRe: inheriting varibles from within a class Pin
PIEBALDconsult12-May-09 17:20
mvePIEBALDconsult12-May-09 17:20 
GeneralRe: inheriting varibles from within a class Pin
Luc Pattyn12-May-09 17:22
sitebuilderLuc Pattyn12-May-09 17:22 
GeneralRe: inheriting varibles from within a class Pin
PIEBALDconsult12-May-09 17:41
mvePIEBALDconsult12-May-09 17:41 
GeneralRe: inheriting varibles from within a class Pin
antrock10112-May-09 17:25
antrock10112-May-09 17:25 
GeneralRe: inheriting varibles from within a class Pin
antrock10112-May-09 17:36
antrock10112-May-09 17:36 
GeneralRe: inheriting varibles from within a class Pin
PIEBALDconsult12-May-09 17:46
mvePIEBALDconsult12-May-09 17:46 
GeneralRe: inheriting varibles from within a class Pin
antrock10112-May-09 18:00
antrock10112-May-09 18:00 

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.