473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2660
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Shan | last post by:
Hello, I am developing an application for pocket PC. I tried to use the System.Runtime.InteropSerices.Marshal class. But I could not use the GetHINSTANCE method in my code. I received an error...
3
by: Tom | last post by:
I think I'm still a little rough on the principle and understanding of Marshal by value and Marshal by reference after reading various materials. my understanding of Marshal by value is that the...
13
by: Just Me | last post by:
The following almost works. The problem is Marshal.PtrToStringAuto seems to terminate at the first null so I don't get the full string. Any suggestions on how to fix this? Or how to improve the...
4
by: Michael McGarry | last post by:
Hi, I am using the marshal module in python to save a data structure to a file. It does not appear to be portable. The data is saved on a Linux machine. Loading that same data on a Mac gives me...
21
by: Mike | last post by:
Hi, The example below shows that result of a marshaled data structure is nothing but a string >>> data = {2:'two', 3:'three'} >>> import marshal >>> bytes = marshal.dumps(data) >>>...
2
by: Pierre Rouleau | last post by:
Hi all, When using Python 2.4.x on a Win32 box, marshal.loads(marshal.dumps(1e66666)) returns 1.0 instead of infinity as it should and does under Python 2.5 (also running on Win32 ). This...
26
by: Shraddha | last post by:
I got a small programm on net...but there was different initialisation that I saw... It was as follows: for ( i = ~0 ; i ; i>>=1); right shift is ok..But what is meaned by " i = ~0 "...
2
chunk1978
by: chunk1978 | last post by:
i wrote a custom PHP script last year and everything worked perfectly... recently my webserver upgraded to PHP 5 and now my script doesn't work properly. what the script does is: users fill out...
0
by: xrxst32 | last post by:
Hello there, I have some doubts about the best practice for using COM automation, the Runtime Callable Wrapper (RCW) and Marshal.ReleaseComObject. So the question is/are: Do I need to release...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.