serialize managed pointers?

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

    #1

    serialize managed pointers?

    I have class that is serialized and passed over appdomain boundaries. It
    also includes these members:
    PHTTP_RESPONSE _phttpResponse;
    PHTTP_UNKNOWN_H EADER _pHttpUnknownHe aders;
    PVOID _pEntityBuffer;

    When I try to serialize the class I get the exception complaining that
    System.Reflecti on.Pointer is not marked as serializable.

    How can I mark that these pointers are actually value types or unmanaged
    types so they are serialized by their true unmanaged value?

    PS.
    It would also be acceptable for this class to be marshalbyref, but even then
    when these pointers are accessed, it attempts to serialize them individually
    to pass their value over the appdomain boundary.





  • Ben Ogle

    #2
    Re: serialize managed pointers?


    I know this is old old, but did you ever find a solution to this? I am
    having the same problem and everywhere I look it says the
    system.reflecti on.pointer class is serializable.

    Ben



    --
    Ben Ogle
    ------------------------------------------------------------------------
    Posted via http://www.codecomments.com
    ------------------------------------------------------------------------

    Comment

    Working...