This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/68183] New: Using Serial communication stream lose packets somtimes, file OK
- From: "nicklas.karlsson17 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Nov 2015 15:17:49 +0000
- Subject: [Bug ada/68183] New: Using Serial communication stream lose packets somtimes, file OK
- Auto-submitted: auto-generated
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.