Click here to Skip to main content
15,918,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The data in one memory block whose address I have already found is always changing, and I want it not changed. How to realise it with Visual C++, multi-thread or ...? Code will be fine. Thanks! :) :rose:
Posted

What are you trying to do by preventing changes to memory contents?
 
Share this answer
 
If you have all the source code of the application and the problem is about thread synchronization (it looks like) add the proper synchronization guards (for instance a mutex).
:)
 
Share this answer
 
If you do not want to change something, you could declare it as a const variable. However, I do really have no idea of what exactly your problem is.

Use the message board at the bottom of this page (click "new post") to give more clarification, or edit your original query by clicking "improve question".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900