c# - Mono System.IO.Ports SerialPort class error handling -
I'm debugging some mono code which is using serial ports. At some point mono writes a table with the following code:
// send 1024 bytes (256 words) CRC table progression = new progress bar (); ProgressBar.Update (0.0, "sending CRC table ..."); For (int i = 0; i MySpay is a serial port example when I detect this code by using Stress, so I think the resulting system calls are:
16620 write (3, "3ab551ce", 8) = -1 EAGN (resource is temporarily unavailable) 16620 write (3, "\ 0003ab551c", 8) = -1 EAGAN (resource temporarily unavailable) 16620 3, "(0, 0003ab55", 8) = -1 EAGAN (Processing Temporary Rupee) Unavailable) 16620 (3, "\ 10 \ 0 \ 0 \ 0003ab5", 8) = -1 EAGAN (resource temporarily unavailable) 16620 write (3, "\ 0 \ 10 \ 0 \ 0 \ 0003ab", 8) = -1 EAGAN (resource is temporarily unavailable) ... Write 16620 (3, "\ 0005 \ 0 \ 230 o + \ 10 \ 0", 8) = - 1 EAGN (resource temporarily unavailable) 16620 write (3, "E \ 0005 \ 0 \ 230 o + \ 10", 8) = -1 EAGN (resource temporarily unavailable) 16620 write (3, "\ 0E \ 0005 \ 0 \ 230O +", 8 ) = -1 EAGN (resource temporarily unavailable) 16620 write (3, "\ 0 \ 0E \ 0005 \ 0 \ 230O", 8) = -1 EAGN (resource Temporarily unavailable) 16620 te (3, "\ 0 \ 0 \ 0 \ 0005 \ 0 \ 230", 8) = -1 EAGAN (resource temporarily unavailable) 16620 write (3, "4 \ 0 \ 0 \ 3 \ "\ 0 \ 0 \ 0 \ 0 \", write = 8 16620 (3, "\ 230 o + 10 \ 0 \ 0 \ 0 \ 0", 8) = 8, 16620 0 \ 10 \ 0 \ 0 \ 0 ", 8) = -1 EAGAN (The resource is temporarily unavailable) I understand that the EGN case does not handle properly in the manner of writing serial port and before index-1 Updates to . Because after every effort, the contents of the original buffer are transferred by a byte. My question is, is this a known problem, and how can I modify the serial port class so that it behaves correctly or the serial port in the blocking path?
Not very useful
Additional information: Mono-V output:
Mono JIT compiler version 1.2. 6 (Tarabal) Copyright (c) 2002-2007 Novell, Inc. and Contributor www.mono-project.com TLS: __thread GC: Bohem (with type GC) is included SIGSEGV: Altstack Notification: Apollo Architecture: x86 Disabled: Anyone
The bug was fixed.
Comments
Post a Comment