title: Not using Winforms but get an Access Violation Exception in Windows.Forms.dll at startup?
body: <p>I'm having trouble with some weird exception in .NET. I get this exception randomly at startup (only when executing in Visual Studio), and when it occurs, it does not execute any user-specific code (coded by me). e.g., Breakpoints in <code>App.xaml</code> or in <code>MainWindow.xaml</code> are not hit, because the exception occurs earlier. </p>
  
  <p>Should maybe mention, that it is a WPF application. Another interesting fact is, that I have not imported the Windows.Forms.dll (and therefore do not use it) in my project. </p>
  
  <p>Attached: Stacktrace and Exception message.</p>
  
  <p>Any idea why this exception occurs?
  I would appreciate your help. Thanks!</p>
  
  <p><strong>Exception</strong></p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll
    Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</p>
  </blockquote>
  
  <p><strong>Stacktrace</strong></p>
  
  <p><img src="https://i.stack.imgur.com/h9SGe.png" alt="Stacktrace"></p>