title: The thread tried to read from or write to a virtual address for which it does not have the appropriate access
body: <p>I have developed a .NET 2.0 extension that acts as a plug in to a 3rd party application. Everything runs fine when run on anything but Citrix.  When run over Citrix as a published application the extension crashes randomly which also crashes the 3rd party application.</p>
  
  <p>I have opened up a dump file and have found an exception message that gets reported:</p>
  
  <p><strong>The thread tried to read from or write to a virtual address for which it does not have the appropriate access.</strong></p>
  
  <p>I've not had much luck with google.  The application does use threading which I suspect where the above occurs, but where exactly is a mystery.  If I run the extension locally on the citrix server (ie not as a published app.) then it works fine.</p>
  
  <p>I'm not expecting an answer here (be great if someone did!) due to the general nature of the issue but if anyone could point me in a direction of helping to nail the issue or describing the error message I would be much appreciative.</p>
  
  <p>Thanks,</p>
  
  <p>Rob </p>