Some thoughts
I've been having some thought, like, if I run a program, and I'm exporting a pointer to a variable "a" to a file, and I reads that information with another program, wouldn't the second program be able to modify "a" in the first program using that pointer? - Like the memory address is the same right?
And then I need some help, is it possible, for me, to write some code lines in a text file, and like make the program load and execute these lines from the file? - if I got a program, and I need to do a lot of testing in a specific sector or something, is it possible? - I know it's possible with shaders.
Skeen
Junior Poster in Training
77 posts since Nov 2009
Reputation Points: 10
Solved Threads: 2
Any addresses you obtain are not real addresses but rather virtual addresses. In terms of real hardware addresses, i.e., physical addresses, only Windows itself deals with them. It isn't like back in the old DOS world where you could actually deal with hardware.
There are ways to share data between processes, but writing a virtual address to a file and reading it with another program isn't one of them.
So you're saying that I'm unable to use my pointer in another program, even tho it isn't released by the main program yet (still running). - Like, what would that pointer, point to then? - if I call it's value in the second program.
And I know that there are ways, it was just 'Some thoughts'.
Skeen
Junior Poster in Training
77 posts since Nov 2009
Reputation Points: 10
Solved Threads: 2