Dumb question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Dufour

    #1

    Dumb question

    What is the meaning of the word marshal and unmarshal in plain english as
    applied to an exe file?

    Does it mean the application has started and ended?

    Thanks for any help,
    Happy new year,
    Bob



  • Henry Jones

    #2
    Not a dumb question - A Good One

    From what I understand:

    The marshaler essentially provides a bridge between the functionality of old
    and new interfaces. Custom marshaling enables clients that you designed to
    work with an old interface to also work with servers that only implement a
    new interface. Custom marshaling also enables clients built to work with a
    new interface to work with servers that expose the old interface.

    Instead of using the interop marshaler, you can design a custom marshaler
    for an interface that introduces different marshaling behavior or exposes
    the interface to COM in a different way. By using a custom marshaler, you
    can minimize the distinction between new .NET components and existing COM
    components.

    For example, suppose that you are developing a managed interface called
    INew. When exposed to COM through a standard COM callable wrapper, the
    interface has the same methods as the managed interface and uses the
    marshaling rules built into the interop marshaler. Further suppose that a
    well-known COM interface called IOld already provides the same functionality
    as the INew interface. By introducing a custom marshaler, you can provide an
    unmanaged implementation of IOld that simply delegates the calls to the
    managed implementation of the INew interface. The custom marshaler
    essentially acts as a bridge between the managed and unmanaged interfaces.

    Note that custom marshalers are not invoked when calling from the managed
    side to unmanaged side on a dispatch only interface.

    Not a dumb question. I didn't know it either.

    "Robert Dufour" <bdufour@sgiims .comwrote in message
    news:OXgUWz3KHH A.1424@TK2MSFTN GP04.phx.gbl...
    What is the meaning of the word marshal and unmarshal in plain english as
    applied to an exe file?
    >
    Does it mean the application has started and ended?
    >
    Thanks for any help,
    Happy new year,
    Bob
    >
    >
    >

    Comment

    • mediocrevbprogrammer.freed

      #3
      Re: Not a dumb question - A Good One

      me neither

      Comment

      • Michel Posseth  [MCP]

        #4
        Re: Dumb question


        A teacher of mine always said

        "The only dumb question is the question you have, and don`t ask"

        regards

        Michel


        "Robert Dufour" <bdufour@sgiims .comschreef in bericht
        news:OXgUWz3KHH A.1424@TK2MSFTN GP04.phx.gbl...
        What is the meaning of the word marshal and unmarshal in plain english as
        applied to an exe file?
        >
        Does it mean the application has started and ended?
        >
        Thanks for any help,
        Happy new year,
        Bob
        >
        >
        >

        Comment

        • Lucian Wischik

          #5
          Re: Dumb question

          "Robert Dufour" <bdufour@sgiims .comwrote:
          >What is the meaning of the word marshal and unmarshal in plain english as
          >applied to an exe file?
          In olden times the "Marshal" of an army was the one who looked after
          the horses. As horse warfare became more important, the title of
          Marshal came to apply to more senior ranks. When you "marshal" your
          troops or horses, it means you're lining them up - perhaps to send
          them out to battle, or perhaps for review on the parade ground.

          Marshalling your data is the same as marshalling your troops. Your
          program probably stores its data in memory with pointers and objects
          and arrays and so on. Marshalling it means to flatten it into a linear
          sequence of bytes, perhaps to send over the network or perhaps to save
          to disk.

          --
          Lucian

          Comment

          • Robert Dufour

            #6
            Re: Dumb question

            Thanks to all of you.
            Happy new year
            Bob
            "Lucian Wischik" <lu.nn@wischik. comwrote in message
            news:6oucp2ls8f 1udpmvfdmtoss9l l6cudg6ro@4ax.c om...
            "Robert Dufour" <bdufour@sgiims .comwrote:
            >>What is the meaning of the word marshal and unmarshal in plain english as
            >>applied to an exe file?
            >
            In olden times the "Marshal" of an army was the one who looked after
            the horses. As horse warfare became more important, the title of
            Marshal came to apply to more senior ranks. When you "marshal" your
            troops or horses, it means you're lining them up - perhaps to send
            them out to battle, or perhaps for review on the parade ground.
            >
            Marshalling your data is the same as marshalling your troops. Your
            program probably stores its data in memory with pointers and objects
            and arrays and so on. Marshalling it means to flatten it into a linear
            sequence of bytes, perhaps to send over the network or perhaps to save
            to disk.
            >
            --
            Lucian

            Comment

            • Michel Posseth  [MCP]

              #7
              Re: Dumb question


              What a verry informative explanation ...

              I did now what Marshalling means in programming turns since the COM era ,
              however where the word came from was a complete mystery to me

              So thank you , i have learned something new today

              regards

              Michel


              "Lucian Wischik" <lu.nn@wischik. comschreef in bericht
              news:6oucp2ls8f 1udpmvfdmtoss9l l6cudg6ro@4ax.c om...
              "Robert Dufour" <bdufour@sgiims .comwrote:
              >>What is the meaning of the word marshal and unmarshal in plain english as
              >>applied to an exe file?
              >
              In olden times the "Marshal" of an army was the one who looked after
              the horses. As horse warfare became more important, the title of
              Marshal came to apply to more senior ranks. When you "marshal" your
              troops or horses, it means you're lining them up - perhaps to send
              them out to battle, or perhaps for review on the parade ground.
              >
              Marshalling your data is the same as marshalling your troops. Your
              program probably stores its data in memory with pointers and objects
              and arrays and so on. Marshalling it means to flatten it into a linear
              sequence of bytes, perhaps to send over the network or perhaps to save
              to disk.
              >
              --
              Lucian

              Comment

              Working...