PC Review


Reply
Thread Tools Rate Thread

Re: System.Threading.Monitor and SendMessage

 
 
Craig Bryant
Guest
Posts: n/a
 
      6th Sep 2005
Thanks for the response - sounds like a good idea. But I am not familiar
with the Reflector you mention. Could you provide a link? (Are you thinking
of Rotor?)

"Cool Guy" <(E-Mail Removed)> wrote in message
news:1gakpgp121338$.(E-Mail Removed)...
> Craig Bryant <(E-Mail Removed)> wrote:
>
>> Does anyone have any idea what I can do, in the SendMessage case, to get
>> the behaviour I am seeing using Control.Invoke()? I would rather not use
>> Control.Invoke() because it has a couple limitations relative to using
>> SendMessage() (but I may have to...)

>
> It might be rewarding to look at the code for Control.Invoke in Reflector.



 
Reply With Quote
 
 
 
 
Cool Guy
Guest
Posts: n/a
 
      6th Sep 2005
Craig Bryant <(E-Mail Removed)> wrote:

> Thanks for the response - sounds like a good idea. But I am not familiar
> with the Reflector you mention. Could you provide a link? (Are you thinking
> of Rotor?)


No, this: <http://www.aisto.com/roeder/dotnet/>.

With it you can view C# code, for example, representing compiled MSIL. So
you could use it to view the innards of Control.Invoke.
 
Reply With Quote
 
Richard Blewett [DevelopMentor]
Guest
Posts: n/a
 
      6th Sep 2005
Contorl.Invoke does a PostMessage then waits on a kernel event object which the UI thread signals when it has invoked the method

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Thanks for the response - sounds like a good idea. But I am not familiar
with the Reflector you mention. Could you provide a link? (Are you thinking
of Rotor?)

"Cool Guy" <(E-Mail Removed)> wrote in message
news:1gakpgp121338$.(E-Mail Removed)...
> Craig Bryant <(E-Mail Removed)> wrote:
>
>> Does anyone have any idea what I can do, in the SendMessage case, to get
>> the behaviour I am seeing using Control.Invoke()? I would rather not use
>> Control.Invoke() because it has a couple limitations relative to using
>> SendMessage() (but I may have to...)

>
> It might be rewarding to look at the code for Control.Invoke in Reflector.




[microsoft.public.dotnet.framework]
 
Reply With Quote
 
Craig Bryant
Guest
Posts: n/a
 
      6th Sep 2005
Thanks a lot, Richard.

"Richard Blewett [DevelopMentor]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Contorl.Invoke does a PostMessage then waits on a kernel event object
> which the UI thread signals when it has invoked the method
>
> Regards
>
> Richard Blewett - DevelopMentor
> http://www.dotnetconsult.co.uk/weblog
> http://www.dotnetconsult.co.uk
>
> Thanks for the response - sounds like a good idea. But I am not familiar
> with the Reflector you mention. Could you provide a link? (Are you
> thinking
> of Rotor?)
>
> "Cool Guy" <(E-Mail Removed)> wrote in message
> news:1gakpgp121338$.(E-Mail Removed)...
> > Craig Bryant <(E-Mail Removed)> wrote:
> >
> >> Does anyone have any idea what I can do, in the SendMessage case, to
> >> get
> >> the behaviour I am seeing using Control.Invoke()? I would rather not
> >> use
> >> Control.Invoke() because it has a couple limitations relative to using
> >> SendMessage() (but I may have to...)

> >
> > It might be rewarding to look at the code for Control.Invoke in
> > Reflector.

>
>
>
> [microsoft.public.dotnet.framework]



 
Reply With Quote
 
Craig Bryant
Guest
Posts: n/a
 
      6th Sep 2005
Thanks for the info.

"Cool Guy" <(E-Mail Removed)> wrote in message
news:2ozacz49te5g$.(E-Mail Removed)...
> Craig Bryant <(E-Mail Removed)> wrote:
>
>> Thanks for the response - sounds like a good idea. But I am not familiar
>> with the Reflector you mention. Could you provide a link? (Are you
>> thinking
>> of Rotor?)

>
> No, this: <http://www.aisto.com/roeder/dotnet/>.
>
> With it you can view C# code, for example, representing compiled MSIL. So
> you could use it to view the innards of Control.Invoke.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Threading.Monitor usage Vladimir Microsoft C# .NET 1 19th Oct 2009 08:25 PM
Re: System.Threading.Monitor and SendMessage Nigel Norris Microsoft Dot NET Framework 0 7th Oct 2005 07:59 PM
VS2005: Problem with System.Threading.Monitor =?Utf-8?B?UGV0ZXIgU2NobWl0eg==?= Microsoft Dot NET 1 17th Apr 2005 07:07 PM
System.Threading.Monitor ? DM Microsoft Dot NET Compact Framework 6 8th May 2004 01:23 PM
System.Threading.Monitor question Jon Shemitz Microsoft Dot NET Framework 3 17th Feb 2004 12:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:58 PM.