Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WpfVisualizer running in environment .net framework 4.8, an error is reported #90

Closed
CanineBoy opened this issue Nov 6, 2023 · 0 comments

Comments

@CanineBoy
Copy link

Describe the bug
An exception occurs when Project WpfVisualizer is executed in the.NET framework 4.8 environment.
Find the problem in
-Secs4Net.Json
-JsonReader.cs
-List ToSecsMessages(this Stream stream)

System.Text.Json.JsonReaderException
HResult=0x80131500
Message='0x00' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
Source=System.Text.Json
StackTrace:
在 System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
在 System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
在 System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)
在 System.Text.Json.Utf8JsonReader.ReadSingleSegment()
在 System.Text.Json.Utf8JsonReader.Read()
在 Secs4Net.Json.Utf8JsonStreamReader.Read() 在 //src/Secs4Net.Json/Utf8JsonStreamReader.cs 中: 第 44 行
在 Secs4Net.Json.JsonReader.ToSecsMessages(Stream stream) 在 /
/src/Secs4Net.Json/JsonReader.cs 中: 第 210 行
在 Secs4Net.SecsMessageList..ctor(String jsonFile) 在 D:\01项目\09 SECS\Secs4Net\samples\WpfVisualizer\SecsMessageList.cs 中: 第 10 行
在 SecsMessageVisuallizer.Window1..ctor() 在 D:\01项目\09 SECS\Secs4Net\samples\WpfVisualizer\Window1.xaml.cs 中: 第 12 行

@mkjeff mkjeff closed this as completed Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants