[Bug ada/68183] New: Using Serial communication stream lose packets somtimes, file OK

nicklas.karlsson17 at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 2 15:17:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68183

            Bug ID: 68183
           Summary: Using Serial communication stream lose packets
                    somtimes, file OK
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nicklas.karlsson17 at gmail dot com
  Target Milestone: ---

Gnat.Serial_Communications.Write(File, D); file work OK.

File : aliased Serial_Port;
  Stream : access Ada.Streams.Root_Stream_Type :=
Ada.Streams.Root_Stream_Type(File)'Access;

Byte'Write(Stream, Byte(n)); sometimes lose packets.


Usinge write function in serial communication package work OK. But then using
the root class and the 'Write(...) function sometimes loses bytes, it does not
seems to totally random instead a byte seems be losed after a few bytes with
some randomness up or down.


More information about the Gcc-bugs mailing list