HP3000-L Archives

May 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Wed, 17 May 2000 12:10:58 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Re:
> Will the following error be produced if my buffer is too small on my FREAD?
> read_length := -4106;
> length_read := fread(almginbd_msgf,in_port_record,read_length);
>
> ALMSGH - Unable to Read ALMGINBD.MSGF.CJISII
> ALMSGH - END OF FILE  (FSERR 0)
>
> My message file is:
> ALMGINBD*        4200B  VAM          0        503   1      256  1  *

Your message file is empty.

Normally, a read from an empty message file will wait (instead of returning
with an error) ... except in two cases:

   1) you've told MPE you don't want to wait (via FCONTROL 45)

   2) the last writer closed the file after you opened it (and there are
      no messages in the file) (unless you enable extended wait yourself)
      (BTW, this is part of the great design of message files...Howard Morris,
      who designed them put a lot of thought into the startup/finish
      semantics and got them right!)





Stan Sieler                                           [log in to unmask]
www.allegro.com/sieler/wanted/index.html          www.allegro.com/sieler

ATOM RSS1 RSS2