Jump to content
Sign in to follow this  
Reinhardt

Problem with files

Recommended Posts

Reinhardt

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

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
Reinhardt

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

Share this post


Link to post
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
Sign in to follow this  

×