468,783 Members | 1,590 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,783 developers. It's quick & easy.

Marshal - What does it Mean - in Plain English?

I have been learning about asynchronous method calls and I keep coming
across this term, "marshal" and I would like to know what it means -
specifically. AFAIKT, it means "send" but I suspect there is a bit more than
that.

Looking to online docs, MSDN talks about the System.Runtime.Interop.Marshal
class - but I don't think that's relevant to what I'm seeing. Maybe it is...

The following is an example of the sort of thing I've been reading... so you
can see the context in which "marshal" is being used, that I am wondering
about:

<quote>
Other objects can retrieve the Form's SynchronizationContext object through
the Current property and use it later for marshaling delegate invocations to
the Form's thread. In this way, Forms no longer have to check to see if an
event they are responding to originated on another thread. The marshaling
has already been taken care of elsewhere. In essence, the responsibility for
marshaling events has been moved from the receiver of an event to the
sender.
</quote>

Does marshal, as used in the above <quotesimply mean "we're going to send
the delegate/method invocation call from one thread to another"?? such that
the method executes on the other thread???

Thanks!

Sep 14 '07 #1
1 2494
In .Net/COM context 'Marshal' means send / make available / convert in
suitable format if required.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------

"Frankie" <A@B.COMwrote in message
news:uQ**************@TK2MSFTNGP05.phx.gbl...
>I have been learning about asynchronous method calls and I keep coming
across this term, "marshal" and I would like to know what it means -
specifically. AFAIKT, it means "send" but I suspect there is a bit more
than that.

Looking to online docs, MSDN talks about the
System.Runtime.Interop.Marshal class - but I don't think that's relevant
to what I'm seeing. Maybe it is...

The following is an example of the sort of thing I've been reading... so
you can see the context in which "marshal" is being used, that I am
wondering about:

<quote>
Other objects can retrieve the Form's SynchronizationContext object
through the Current property and use it later for marshaling delegate
invocations to the Form's thread. In this way, Forms no longer have to
check to see if an event they are responding to originated on another
thread. The marshaling has already been taken care of elsewhere. In
essence, the responsibility for marshaling events has been moved from the
receiver of an event to the sender.
</quote>

Does marshal, as used in the above <quotesimply mean "we're going to
send the delegate/method invocation call from one thread to another"??
such that the method executes on the other thread???

Thanks!

Sep 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Shan | last post: by
3 posts views Thread by Tom | last post: by
4 posts views Thread by Michael McGarry | last post: by
21 posts views Thread by Mike | last post: by
26 posts views Thread by Shraddha | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.