Re: Can't create error message file: ex.err

new topic     » goto parent     » topic index » view thread      » older message » newer message

akusaya wrote:
> 
> It happens if you open()ed a file but never closed it, so the maximum
> number of open files is reached, Eu cannot open ex.err.
> 
> You should examine your code to make sure it's closed.
> The common mistake is:
> 
> 
> -- **A
> for i = 1 to ... do
>     fn = open("filename", "r") -- **B
>     for j = 1 to ... do
>         read a line from file
>         process line
>     end for
> end for
> 
> **B should be placed on **A.
> 
> 

That's it.
I was openning and reading 258 files and not closing any.

Thank you,

akusaya 

Don Cole
SF

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu