title: How can I get the value from a memory address?
body: <p>I want to get the value from a memory address which I have without crashing the program.</p>
  
  <p>here is my code:</p>
  
  <pre><code>int main(){
      int *ptr=(int*)0x09D37570;
      while(1){
          system("cls");
          cout&lt;&lt;(*ptr);
      }
      return 0;
  }
  </code></pre>
  
  <p>but that crashes the program, it crashes by calling *ptr, why does that happen? how can i get the value without problems?</p>