MEMPTR Location

Posted by Jeff Ledbetter on 07-Jan-2016 14:12

Hi.

I assume that I should know this but I am drawing a blank..

Can a MEMPTR location be fetched and given to another prowin session to access the data in the MEMPTR?

Jeff

Posted by Matt Gilarde on 07-Jan-2016 14:22

No. The second session has its own address space and can't see the MEMPTR memory from the first session at all.

All Replies

Posted by Matt Gilarde on 07-Jan-2016 14:22

No. The second session has its own address space and can't see the MEMPTR memory from the first session at all.

Posted by Tim Kuehn on 07-Jan-2016 14:24

What if the MEMPTR was pointing to something not in a prowin session?

Posted by Laura Stern on 07-Jan-2016 14:24

No.  Memory for one process has no relationship to the memory in another session.  Each process has its own private virtual memory space.  It is not even the case that if you run exactly the same thing in 2 prowin sessions that the address of a particular MEMPTR pointer will be the same in both.

Posted by Jeff Ledbetter on 07-Jan-2016 14:24

Thanks Matt. You should know. :)

Posted by Laura Stern on 07-Jan-2016 14:25

Re Tim's question, you can't have a pointer to memory outside of your session.  There is no such thing.  Even it if is memory in a 3rd-party dll, it is still mapped to memory in the process's private address space.

Posted by Brian K. Maher on 07-Jan-2016 14:27

No, it cannot.  Memory is tied to the process.

This thread is closed