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 Synchronization Context 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! 1 2682
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).
EZNamespaceExte nsions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensio ns.Net : Develop all shell extensions,expl orer bars and BHOs
rapidly in .Net
---------
"Frankie" <A@B.COMwrote in message
news:uQ******** ******@TK2MSFTN GP05.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 Synchronization Context 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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 saying
"'System.Runtime.InteropSerices.Marshal' does not contain a definition
for GetHINSTANCE. Any pointers will be helpful
Thanks,
|
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 object is copied and passed
by value out of the application domain. So does that mean the ENTIRE server
object is copied to the client side ? thus all calculations are done on the
client side ?
ie. if client/server
|
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 code?
Thanks
PS I added the +1 because as I understand the GetLogicalDriveStrings doc
|
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 the bad marshal data
message.
Is this data really not portable or I am doing something wrong here. I
thought the whole point of using Python and similar cross platform
scripting languages to write once run everywhere, does that not hold
|
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)
>>> type(bytes)
<type 'str'>
| |
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 problem was reported in another thread here by Peter Hansen
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/5c2b4b2a88c8df4/f216739705c9304f?lnk=gst&q=simplejson&rnum=5#f216739705c9304f
Is this considered an important enough...
|
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 "...
|
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 info and optionally can upload images, the user receives and email receipt of all the data they just submitted, and i'm suppose to receive their information in my email.
what still works is that the user will receive their receipt and the images...
|
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 each COM object explicit by a call to
Marshal.ReleaseComObject, does the RCW take care of that or does it
leaks
unmanaged resources?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |