Is there an object on given memory address?
tcak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 12 02:04:28 PST 2015
On Thursday, 12 February 2015 at 10:03:18 UTC, tcak wrote:
> Is there any "reliable" way to determine whether there is a
> certain type of object in memory at a given address?
>
> I am going to send the memory address of an object to another
> program over pipes. Then after a while, other program will send
> that memory address, and main program will try to address the
> object. (Please do not concern about security). What I am
> worried about is whether the object is still there, or garbage
> collector has already removed it, or another object has come on
> same address.
BTW, I have already got the address of object into a "size_t"
type variable and sent it. That is not the problem part.
More information about the Digitalmars-d-learn
mailing list