Re: A problem in writting a sequential binary file (compiled with LF95)




P.Wholey wrote:
....

do i=1,testnum
write(33)test(i)
enddo
....

The problem is a little weird. If I give the "testnum" a small value
like 1001, it works well. But If a bigger value e.g. 3000 is given, an
error message as below will appear:

****************************************************************************
An I/O error was detected (system call=write, errno=6, system
message="bad file
number", unit=33).
Program Completed
Press Enter to Continue.
****************************************************************************

And the generated file has less than 8 KB data.

I'm quite confused. Could anyone help me out?

Looks to me like a request to Lahey support would be in order.

One question/suggestion -- what happens if you replace the "loop write"
w/

write(33) test(1:testnum)

.



Relevant Pages

  • Re: PAGE FILE ERROR
    ... having error message when I log on into Windows. ... It means that the pagefile needs to be bigger. ... Jim ...
    (microsoft.public.windowsxp.general)
  • Re: "Send" command not working
    ... error message I get when I go to "Send" is a Microsoft Windows Error Message ... Outbox keeps getting bigger and bigger. ... Move the messages that are in the Outbox, ...
    (microsoft.public.windows.vista.mail)
  • Re: Unable to merge replication table
    ... This table never had more than 255 fields, in fact, it has never been bigger ... this is the generic access denied error message. ... The other tables from that database replicate just fine in the same ... > Paul Ibison SQL Server MVP, ...
    (microsoft.public.sqlserver.replication)
  • Re: A question about pop-up menu in GUI
    ... ?warndlg('The typed number must be bigger than 4','WARNING'); ... Again, thanks for your response. ... Set an error message if the pop-up menu value is 1 (the top of the ...
    (comp.soft-sys.matlab)
  • Re: A question about pop-up menu in GUI
    ...    warndlg('The typed number must be bigger than 4','WARNING'); ... Again, thanks for your response. ... Set an error message if the pop-up menu value is 1 (the top of the ...
    (comp.soft-sys.matlab)