title: WPF on Windows Embedded Framework question
body: <p>I am currently developing a WPF application for a Single Board AMD Geode Computer (touch screen).</p>
  
  <p>Windows Embedded Standard installs fine on the device and it has .Net 3.5 loaded. The application runs fine for the most part but I am getting some anomalous behavior and I am suspecting it coming from the framework, as the problems cannot be reproduced on my development machine.</p>
  
  <p>A short description of the problem:</p>
  
  <p>I have this on screen keyboard. As you touch the buttons it displays what you are typing inside this text box at the top of the on screen keyboard. The user key presses are handled by a mouse down event handler on the buttons. Pretty simple. Inside this handler I:</p>
  
  <ol>
  <li>Play a sound for the key press.</li>
  <li>Do some shift and caps logic</li>
  <li>Determine what key was pressed (via sender)</li>
  <li>Update the keyboard text</li>
  </ol>
  
  <p>Now, this works pretty obviously on my development machine. No problems. On Windows Embedded standard I get this weird lag on my keyboard. Basically I press a key, the sound plays but the key that you pressed is not updated in the text box at the top of the keyboard. It only updates much much later, randomly. ( Either seconds later or 30 seconds later, its pretty random and keeps track of all the keys I pressed )</p>
  
  <p>Now, I have placed a log entry at the bottom of my "mouse down handler", and have established that my handler does complete. The text is simply not updated. Also, I can keep on hitting buttons and the sounds play as I hit them, but the text is not update for long times, then suddenly all at once. </p>
  
  <p>The other weird thing is this behavior is not always present. It seems that the longer the OS is up, the more likely it becomes that the keyboard will lag. No other programs are running on the device. Usually after a fresh restart the lag is not there for about 5-20 mins. I have checked the CPU, its pretty much idle through the lag spikes. Application restarts does not solve the initial lag hypothesis. The OS must be restarted to get rid of the problem</p>
  
  <p>Now, I have tried almost everything I can think of but I think this place is my last hope.</p>
  
  <p>Please help me.</p>
  
  <p>Regards,</p>