Yes, this can't work :-) In essence, you are packing up a pointer (=an address
into memory space) on machine A, and unpack it on machine B. But on machine B,
nothing useful is likely going to be stored at the location of the memory
address at which there was a useful object on machine A, and so when you
access the data stored at that location, you should not expect anything good
to happen.
You need to find a way to serialize/deserialize the data pointed to, not the
pointer itself.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/