My project is composed of 3 processes. Process 1 is a “server” of process 2 and 3 and implements shared memory. Process 2 randomly crashes with application errors, trying to access it’s own memory, that has been corrupted somehow.
Error is:
Invalid instruction at some address at memory location some not good address.
Where would I start looking and what type of things would I look for in process 1, to see if it is overwriting process 2’s memory?
Thank You.
Accidentally overwrite the memory of another process (without its cooperation)? No*, because you have to “accidentally” do a lot of things correctly. (You have to “accidentally” open a handle to the process, and also “accidentally” call
WriteProcessMemory.)Intentionally? Yes, using the
WriteProcessMemoryfunction.* If you’re sharing memory, the likelihood of an error skyrockets.