title: FoxIt PDF SDK - AccessViolationException in PrintWithDialog
body: <p>Scenario: WinForms desktop app, .Net 2.0</p>
  
  <p>We're having problems with 0.01% of our user base who are unable to print  documents that we are presenting via FoxIt PDF SDK ActiveX v5.0.1 </p>
  
  <p>When the user clicks a "Print" button, we call the PrintWithDialog() method on the viewer control instance. At this point, an Access Violation Exception is thrown, and then the application hangs. The Print Dialog is not shown. No further user input (mouse, keyboard) brings it back to life and the process has to be killed via task manager.</p>
  
  <p>The exception stack trace is:</p>
  
  <pre><code>AccessViolationException - Attempted to read or write protected memory. This is 
  often an indication that other memory is corrupt.
  
     at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&amp; msgData)
     at FoxitPDFSDKStdLib._DFoxitPDFSDK.PrintWithDialog()
     at AxFoxitPDFSDKStdLib.AxFoxitPDFSDK.PrintWithDialog()
     at MyCode.PDFToolBarButtonClick(Object sender, EventArgs e)
  </code></pre>
  
  <p>We cannot reproduce the problem, and FoxIt don't seem to be able to do anything to help us because we can't give them a project that reproduces the problem.</p>
  
  <p>My suspicions are pointing towards Windows 7 and Group Policy control of print settings. We have had some success asking affected users to remove and reinstall the default printer, but then the problem resurfaces after a day or two. One site has policy settings controlling who can print in color, and installs the printer (the same physical device) differently.</p>
  
  <p>Has anyone got any experience with Windows 7, or group policy settings, affecting printing?</p>
  
  <p>EDIT: It's only FoxIt affected by this issue. Everything else - Acrobat, Word, Notepad etc prints without issue.</p>