Windows 10: Issue with KB5017262 & KB5017270 cause WPF application to crash

Discus and support Issue with KB5017262 & KB5017270 cause WPF application to crash in Windows 10 Gaming to solve the problem; Hello,we are having a trouble since the September cumulative update, our customers reporting that since the upgrade of the above KB, our WPF... Discussion in 'Windows 10 Gaming' started by Tamir Cohen, Sep 28, 2022.

  1. Issue with KB5017262 & KB5017270 cause WPF application to crash


    Hello,we are having a trouble since the September cumulative update, our customers reporting that since the upgrade of the above KB, our WPF application crash with the below error:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Controls.VirtualizingStackPanel.UpdateExtentBoolean areItemChangesLocal at System.Windows.Controls.VirtualizingStackPanel.ShouldItemsChangeAffectLayoutCoreBoolean areItemChangesLocal, ItemsChange

    :)
     
    Tamir Cohen, Sep 28, 2022
    #1
  2. MrSeanKon Win User

    Enable visual styles in WPF application

    EUREKA!

    Steps:
    1) I made a Windows form (HostWPF namespace, Form1 is the form).
    2) I added a reference => System.Windows.Forms.Integration which contains classes that enable interoperation between the Windows Forms and WPF technologies. When you use System.Windows.Forms.Integration classes, you can host Windows Forms controls on WPF pages, and WPF elements in Windows Forms-based applications.
    3) Then added a control (damn Vi$ual $tudio 2010 does not allow to add a WPF window) but after adding I edited the XMAL code in the way I want *Wink Issue with KB5017262 & KB5017270  cause WPF application to crash ;)
    4) The next steps are simple. Download the first attachment. But => see the photo.
    It crashes!!!!!
    5) Finally???
    We must use System.Windows.Forms.Application.Exit(); command because the WPF window behaves like a classical Windows Form.
    Download the second attachment. Note that the Windows form's name is Initial.
    Enjoy!
     
    MrSeanKon, Sep 28, 2022
    #2
  3. W1zzard Win User
    GPU-Z 0.7.5 causing crashes on load up

    Any chance you could narrow it down to which running application causes GPU-Z to crash? Ideally steps to reproduce for me here.
     
    W1zzard, Sep 28, 2022
    #3
  4. MrSeanKon Win User

    Issue with KB5017262 & KB5017270 cause WPF application to crash

    Terminate WPF/Windows forms applications....

    WPF has no concept of MDI applications. In fact Microsoft is trying to discourage any one using that form of application. I'm new to WPF and I really like MDI applications. It allows me to move quickly between windows and compare the content of different windows. Furthermore, sometime the content of one window is useful for another so I can copy and paste. I think it's a great user experience for working mode.
    To continue, download the attachment!
    It includes two folders, they are very simple code.
    The point is how you can terminate an application (Windows Form and WPF).
     
    MrSeanKon, Sep 28, 2022
    #4
Thema:

Issue with KB5017262 & KB5017270 cause WPF application to crash

Loading...
  1. Issue with KB5017262 & KB5017270 cause WPF application to crash - Similar Threads - Issue KB5017262 KB5017270

  2. Asking for Administrator permission in a WPF application despite setting...

    in Windows 10 Gaming
    Asking for Administrator permission in a WPF application despite setting...: 0I developed a WPF application using .NET 5 and I must run it with administrator privileges. I have created a setup project and added the primary output of my WPF application to it.To accomplish this, I have made sure to set the requestedExecutionLevel attribute to...
  3. Issue with KB5017262 & KB5017270 cause WPF application to crash

    in Windows 10 Installation and Upgrade
    Issue with KB5017262 & KB5017270 cause WPF application to crash: Hello,we are having a trouble since the September cumulative update, our customers reporting that since the upgrade of the above KB, our WPF application crash with the below error:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an...
  4. Issue with KB5017262 & KB5017270 cause WPF application to crash

    in Windows 10 Software and Apps
    Issue with KB5017262 & KB5017270 cause WPF application to crash: Hello,we are having a trouble since the September cumulative update, our customers reporting that since the upgrade of the above KB, our WPF application crash with the below error:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an...
  5. Issue with Windows10 KB5017262

    in Windows 10 Installation and Upgrade
    Issue with Windows10 KB5017262: We faced a problem in our WPF application when KB5017262 has been applied on our computers. Our application uses the VirtualizationStackPanel and set the flag IsVirtualizingStackPanel_45Compatible due to performance issues as explained in the post...
  6. Issue with Windows10 KB5017262

    in Windows 10 Gaming
    Issue with Windows10 KB5017262: We faced a problem in our WPF application when KB5017262 has been applied on our computers. Our application uses the VirtualizationStackPanel and set the flag IsVirtualizingStackPanel_45Compatible due to performance issues as explained in the post...
  7. Issue with Windows10 KB5017262

    in Windows 10 Software and Apps
    Issue with Windows10 KB5017262: We faced a problem in our WPF application when KB5017262 has been applied on our computers. Our application uses the VirtualizationStackPanel and set the flag IsVirtualizingStackPanel_45Compatible due to performance issues as explained in the post...
  8. Unable to launch WPF application, crashes with AccessViolationException when accessing...

    in Windows 10 Software and Apps
    Unable to launch WPF application, crashes with AccessViolationException when accessing...: Hi,recently we seeing our application is crashing because of the AccessViolationException when accessing the font collection. This is happening in very few VMs upgraded to Win10 21H2. Event viewer has below callstack. We tried rollback the windows update, but no use. still...
  9. Unable to launch WPF application, crashes with AccessViolationException when accessing...

    in Windows 10 Network and Sharing
    Unable to launch WPF application, crashes with AccessViolationException when accessing...: Hi,recently we seeing our application is crashing because of the AccessViolationException when accessing the font collection. This is happening in very few VMs upgraded to Win10 21H2. Event viewer has below callstack. We tried rollback the windows update, but no use. still...
  10. Unable to launch WPF application, crashes with AccessViolationException when accessing...

    in Windows 10 Gaming
    Unable to launch WPF application, crashes with AccessViolationException when accessing...: Hi,recently we seeing our application is crashing because of the AccessViolationException when accessing the font collection. This is happening in very few VMs upgraded to Win10 21H2. Event viewer has below callstack. We tried rollback the windows update, but no use. still...