title: Access violation exception c#
body: <p>This is my code that throws an exception, it just randomly started today here is the photo : </p>
  
  <p><img src="https://i.stack.imgur.com/qEetD.png" alt="enter image description here"></p>
  
  <p>Here is the whole page code and the error exception :</p>
  
  <pre><code> public frmWFDocumentDetail()
      {
          InitializeComponent();
  
          NavigationInTransition navigateInTransition = new NavigationInTransition();
          navigateInTransition.Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardIn };
          navigateInTransition.Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardIn };
  
          NavigationOutTransition navigateOutTransition = new NavigationOutTransition();
          navigateOutTransition.Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardOut };
          navigateOutTransition.Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardOut };
          TransitionService.SetNavigationInTransition(this, navigateInTransition);
          TransitionService.SetNavigationOutTransition(this, navigateOutTransition);
  
          DataContext = App.ViewModel_WFDocumentDetailItems;
      }
  
      protected override void OnNavigatedTo(NavigationEventArgs e)
      {
          //**this is how you pass parameters through to a new page**//
          string processID = "-1";
          string processName = "";
          NavigationContext.QueryString.TryGetValue("processID", out processID);
          NavigationContext.QueryString.TryGetValue("processName", out processName);
  
          App.ViewModel_WFDocumentHeaderItems.LoadData("johnny", processID);
  
          App.ViewModel_WFDocumentDetailItems.LoadData("johnny");
  
      }
  </code></pre>
  
  <p>and the access violation :</p>
  
  <blockquote>
    <p><em>System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory
    is corrupt.</em></p>
  </blockquote>
  
  <p>I have read up on it, some people say it is nvidia network manager, and some people say I must set some setting like Suppress JIT optimization , and ignore gpu memory if value isn't changed... but nothing works? Can anyone please please send me in the right direction?</p>
  
  <p>As requested , the full stack </p>
  
  <p><img src="https://i.stack.imgur.com/homgY.png" alt="enter image description here"></p>