From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a9ef201032b87ed7 X-Google-Attributes: gid103376,public From: "Corey Ashford" Subject: Re: Ada file IO & vxworks Date: 1998/08/10 Message-ID: <6qn9ni$5r4$1@usenet.rational.com>#1/1 X-Deja-AN: 379760543 References: <35CF08D2.BA545027@ti.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Rational Software Newsgroups: comp.lang.ada Date: 1998-08-10T00:00:00+00:00 List-Id: Doug Lewis wrote in message <35CF08D2.BA545027@ti.com>... >I'm having problems using the text_io file operations on a PPC board >running vxworks 5.3.1, the host is a NT pc. I'm able to successfully >create and write to a file but the task doesn't perform the close >operation and I can find no existance of the file on the pc host. Can >anyone provide some ideas about file operations that they successfully >implemented in an Ada/vxworks environment? > Which Ada compiler are you using? Since you aren't closing the file, it's possible that VxWorks and/or the Ada text_io implementation are buffering up the writes. You might trying adding a call to Ada.Text_Io.Flush() after any writes that you want to be seen on the host. However, that will only flush the Ada side, not the VxWorks side. You may have to close the file periodically and reopen it with the mode set to Append_File. - Corey