Jump to content

Problem with files


Recommended Posts

I tried searching but didn't find anything about this...

I'm getting the following error with my script:

"Unable to open file, the maximum number of open files has been exceeded."

I know there is a limitation for opened files, but I've checked my code a few times, and all functions, that opens a file, closes it before exiting...

Is this some bug or am i not spotting some error in my code?

Edited by Reinhardt
Link to comment
Share on other sites

  • Moderators

I tried searching but didn't find anything about this...

I'm getting the following error with my script:

"Unable to open file, the maximum number of open files has been exceeded."

I know there is a limitation for opened files, but I've checked my code a few times, and all functions, that open a file, closes it before exiting...

Is this some bug or i'm not spotting some error in my code?

I think the max files you can have open at one time is 64, if you're not using FileClose() before exit, and trying to open a file after that limit has been reached than you will get the error.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

the problem is that, like i said, i checked my code, and every file that is opened, is closed... ouch never mind, i just found the error... dumb thing i am :) just found out that i didn't put a fileclose before a "return 0" in one of the functions

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...