BT

深圳风采2017走势图:An Early Look at .NET 4.8

| by Jonathan Allen Follow 586 Followers on Jun 15, 2018. Estimated reading time: 2 minutes |

深圳风采开奖号码 www.ljvch.cn While most of the attention is on .NET Core, work continues on the classic .NET Framework. An "early access” preview of .NET 4.8 shows the areas that Microsoft is most concerned about including high graphics Dots per Inch (DPI), accessibility, and concurrency.

.NET 4.8 is expected to be released in 2019. The current expectation is that it will run on Windows 10 build 1607 at later, but that decision isn't final.

Span<T>

Before we get into what is included, it should be noted that the most requested feature, Span<T>, is not going to be part of this release. According to Rich Lander of Microsoft,

Span is included in .NET Core 2.1. We explored including Span in .NET Framework 4.8 and decided against it due to compatibility concerns for existing applications. You can get access to Span and additional related types in the System.Memory Nuget package which enables some of the scenarios that are enabled on .NET Core.

System.Memory: https://www.nuget.org/packages/System.Memory/

High DPI

High DPI continues to be a focus for .NET. As monitor resolutions continue to improve, applications need to be scaled up to compensate lest the text and images are too small to be legible. In this release, ClickOnce and WinForms are receiving high DPI updates.

There are a couple reasons why high DPI issues keep occurring. First is the availability of high resolution monitors. Microsoft couldn't effectively test scaling at 200 and 300% until hardware that needed that amount of scaling became available. So until monitors stop improving, scaling will continue to be a problem.

Another challenge is multi-monitor setups. When an application moves between monitors with different resolutions, the scaling has to be recalculated and images swapped out. Even worse, an application can overlap two or more monitors with different resolutions. Various compromises are necessary to address this situation and the results aren't always satisfying.

Performance

In addition to the usually internal tweaking such as reducing memory usage for AsyncLocal or fine-tuning spin locks, this release fixes an issue where SqlDataReader.ReadAsync wasn't actually being performed asynchronously.

Deadlocks and Race Conditions

Given the maturity of the .NET Framework, it may come as a surprise to learn that many of the core libraries still harbor race conditions and dead locks. Here is a partial list of concurrency-related issues.

  • CLR: potential crash with concurrent calls to a new dynamic method
  • CLR: possible deadlock when calling Dispose() on an EventSource
  • Networking: NetworkInformation.NetworkChange deadlock scenario when there is a lock around NetworkChanged listener and user's callback
  • WCF: race-condition that exists in AsyncResult that closes a WaitHandle before Set() is called
  • WCF: race-condition when aborting connections which caused ObjectDisposedException to be thrown in CleanupChannelCollections
  • Workflow: under extreme usage conditions (high volume of connections to MSDTC), it was possible for a CriticalSection to be held by a single thread indefinitely
  • User Interface Accessibility (UIA)

UIA concerns continue to be a priority with WinForms gaining new UIA behaviors and UIA bugs being fixed in both it and WPF. (Many non-UIA bugs were also fixed in both.)

For a full list of changes, see the .NET 4.8 release notes. The preview build itself is available via the .NET Blog.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT
  • 世界杯专版 竞猜型彩票 赔率是公认的竞猜利器 2019-02-21
  • 反制更快更强更准!中国坚决打赢对美贸易自卫反击战! 2019-02-20
  • 北京国际旅博会开幕 旅游产品直降数千提前带热暑期档--旅游频道 2019-02-19
  • 世界杯倒计时:球迷街头狂欢为自己的国家打Call 2019-02-18
  • 这论坛需要风水们创新、发展,他们也只能靠这个了······ 2019-02-18
  • 雷政富狱中发声:否认漏罪举报 不服原判正申诉 2019-02-17
  • 央行:有效防控互联网金融领域风险 2019-02-16
  • 苏57空中姿态控制能力瞬间救场, F22隐身战机无法超越! 2019-02-15
  • 这泼猴总给人萌萌达的感觉 2019-02-15
  • 十年前人大代表工作二三事 2019-02-14
  • 厦门出现不打烊的便民服务站 2019-02-13
  • 故事新西兰强震致民宅破坏严重 超市遭抢购 2019-02-12
  • 中关村医院为中科院科研人员提供就医绿色通道 2019-02-11
  • 候选企业:内蒙古呼和浩特金谷农商银行 2019-02-11
  • 百姓满意的口碑,就是最高荣誉! 2019-02-10
  • 663| 88| 627| 720| 212| 719| 659| 345| 840| 464|