473,387 Members | 1,903 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.

serialize managed pointers?

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.

Nov 17 '05 #1
1 926

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

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

Nov 25 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lars-Erik Aabech | last post by:
Hi! I've got problems with serializing my collections of business objects. The objects themselves serialize fine, but the collections fail. I've got the following structure: Base collection...
16
by: Corne' Cornelius | last post by:
Hi, I need to save a (complex) struct which has pointer members, to a file, and load it again later. The actual memory which the pointers point to must be saved, not the memory address. Will...
2
by: Craig Kenisston | last post by:
Which are the disadvantage of use pointers in the code ? In general. I know it turns your code into unsafe code, because even you have to flag it ... but does it still 100% managed code, right...
3
by: Dave | last post by:
I'm at a point where I would really like to focus in on learning .NET but am having a hard time deciding which language to use. I learned to program in C++ but have spent quite a bit of time using...
0
by: Andrea | last post by:
Hi, I'have a class (vcc++ managed code) that contains a Region and I need to serialize it. I'm istalled ISerializable interface and I try to serialize Region as following; Serialize: ...
2
by: bor_kev | last post by:
Hi, First of all, i want to use the new managed class syntax and STL.NET under Microsoft Visual (C++) Studio 2005 Beta. I read in a Microsoft...
5
by: Andrew Robinson | last post by:
I need to serialize a dictionary so I can encode the contents. I have the following working but the size seems large. I am guessing that I am serializing the entire object not just the data. Is...
3
by: Mark Ingram | last post by:
Hi, I've been trying to update some old C++ code and when i came across this: MyClass** ppOut I changed it to: MyManagedClass^% ppOut
3
by: vijay.gandhi | last post by:
Hi, I am trying to convert some unmanaged code (C++) to managed code (using C++/CLI). 1) One of the functions used returns a void* which I need to cast into a handle of a managed object. Can...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.