Skip to content

Frequent reading and writing of the serial port causes a blue screen in the window #197

@jinronga

Description

@jinronga

Describe the problem

Frequent reading and writing of the serial port causes a blue screen in the window
微信图片_20250114181437

To reproduce

Port interface:
// Stores data received from the serial port into the provided byte array
// buffer. The function returns the number of bytes read.
//
// The Read function blocks until (at least) one byte is received from
// the serial port or an error occurs.
Read(p []byte) (n int, err error)

// Send the content of the data byte array to the serial port.
// Returns the number of bytes written.
Write(p []byte) (n int, err error)

Please double-check that you have reported each of the following

before submitting the issue.

  • I've provided the FULL source code that causes the problem
  • I've provided all the actions required to reproduce the problem

Expected behavior

微信图片_20250114181437

Operating system and version

window11

Please describe your hardware setup

微信图片_20250114181437

Additional context

微信图片_20250114181437

Issue checklist

  • I searched for previous requests in the issue tracker
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions