Microsoft NET Frameworks Free Download From here




Net Framework  4.8


Performance of System.Diagnostics.StackFrame decreases in Windows 10 and .NET Framework 4.7.1

  • 10/23/2020
  • 2 minutes to read
  • In this article
    This article helps fix an issue where applications that use System.Diagnostics.StackFrame run slower than before after you upgrade to Windows 10 or Microsoft .NET Framework 4.7.1.
    Original product version:   Windows 10, version 1803, Windows 10, version 1709Original KB number:   4057154
    Symptoms
    Starting in October 2017, after you upgrade to Windows 10 or .NET Framework 4.7.1, you notice a significant decrease in performance when you run .NET Framework applications that use the System.Diagnostics.StackFrame class.

    Applications typically rely on StackFrame when they throw .NET exceptions. If this occurs at a high rate (more than 10 incidents per second), applications can slow down significantly (tenfold) and run noticeably slower than before.

    To determine your version of Windows, see Which Windows operating system am I running?.

    Resolution
    This issue is fixed in the following Windows updates.To work around this issue, use one of the following methods.Workaround 1 (preferred): Use a different constructor for StackFrame that takes a Boolean argumentIf application developers are able to make changes to their applications, call the System.Diagnostics.StackTrace.#ctor(Boolean) constructor by using a false argument to avoid capturing source information. This avoids the section of the code in which performance is decreased.

    Share To:

    Business Time

    Post A Comment:

    0 comments so far,add yours

    New Post