serialize managed pointers?

  • Thread starter Thread starter EP
  • Start date Start date
E

EP

I have class that is serialized and passed over appdomain boundaries. It
also includes these members:
PHTTP_RESPONSE _phttpResponse;
PHTTP_UNKNOWN_HEADER _pHttpUnknownHeaders;
PVOID _pEntityBuffer;

When I try to serialize the class I get the exception complaining that
System.Reflection.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.
 
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.reflection.pointer class is serializable.

Ben
 
Back
Top