title: Waiting for move in Windows Phone C#
body: <p>I am writting in Windows Phone a short game noughts and crosses  and I have a problem with waiting for move. I don't really get how to insist a programme to wait for the player's move, I have a code for that part:</p>
  
  <pre><code>public void game()
  {
      while (!checkResult())
      {
          autoEvent.WaitOne();
          compMove();
      }
  }
  </code></pre>
  
  <p>And in that way I have an error after choosing one field <code>NullReferenceException</code>. 
  I started to changing it to <code>this.Invoke(compMove());</code> but it also failed.</p>
  
  <p>Any idea?</p>