A string is a non-POD and contains pointer(s) internally. Any attempt to dereference a pointer read in such a way is bound to end in disaster, as the address refers to the address space of the other process.
And even that assumes that what you're trying to read is actually a std::string and not a C string.