Describe the problem
Frequent reading and writing of the serial port causes a blue screen in the window

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.
Expected behavior

Operating system and version
window11
Please describe your hardware setup

Additional context

Issue checklist
Describe the problem
Frequent reading and writing of the serial port causes a blue screen in the window

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)
Please double-check that you have reported each of the following
before submitting the issue.
Expected behavior
Operating system and version
window11
Please describe your hardware setup
Additional context
Issue checklist