Jump to content
Sign in to follow this  
Blog

Opened too many files

Recommended Posts

Blog

I was running a long loop with my script and it crashed after running for several hours, apparently because too many files have been opened. I double checked my script for fileopen() and fileclose() and I am quite sure that I have closed every file that got opened. What's going on here? Is it a memory problem?

Share this post


Link to post
Share on other sites
BigDod

I was running a long loop with my script and it crashed after running for several hours, apparently because too many files have been opened. I double checked my script for fileopen() and fileclose() and I am quite sure that I have closed every file that got opened. What's going on here? Is it a memory problem?

<{POST_SNAPBACK}>

If you post your script someone may be able to see if there is anything wrong with it.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
SumTingWong

I was running a long loop with my script and it crashed after running for several hours, apparently because too many files have been opened. I double checked my script for fileopen() and fileclose() and I am quite sure that I have closed every file that got opened. What's going on here? Is it a memory problem?

<{POST_SNAPBACK}>

Is this what they called "debugging by telepathy"? :whistle:

Share this post


Link to post
Share on other sites
BigDod

Is this what they called "debugging by telepathy"?  :(

<{POST_SNAPBACK}>

Now close your eyes and concentrate :whistle::dance::dance:


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
Blog

Wow, you guys are good... it worked!

In making me go back to retrieve the script, I noticed one FileOpen() that wasn't closed. I had forgotten I used it there... and the error message I got directed me somewhere else in the code so I didn't see it the first time.

Nice, debugging by telepathy DOES work :whistle: Except I had my eyes open at the time.

Edited by Blog

Share this post


Link to post
Share on other sites
SumTingWong

Wow, you guys are good... it worked!

In making me go back to retrieve the script, I noticed one FileOpen() that wasn't closed. I had forgotten I used it there... and the error message I got directed me somewhere else in the code so I didn't see it the first time.

Nice, debugging by telepathy DOES work  :whistle:  Except I had my eyes open at the time.

<{POST_SNAPBACK}>

Hey, glad I could help!

Share this post


Link to post
Share on other sites
/dev/null

Wow, you guys are good... it worked!

...

Nice, debugging by telepathy DOES work  :dance:  Except I had my eyes open at the time.

Well, you know, the Force is strong in us and with AutoIT we will cross the final frontier where no man has gone before :whistle:

May the Force be with you!

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
Nutster

OT: Ah, someone else who saw William Shatner open the tribute for George Lucas. :whistle:

(Paraphrasing) William Shatner: "I just love these conventions. Don't you? I am so proud to be part of what started it all. Star Trek has been an incredible cultural ..."

Bill notices Star Wars poster then reaches into his pocket and pulls out a piece of paper. He starts reading.

"Dear Mr. Shatner,

We are writing to ask you to open <mumble> tribute to George Lucas <mumble> ... STAR WARS!?"

Two guys dressed as storm troopers walk up behind him and start to pick him up to carry him off-stage.

"Star Wars? I can do Star Wars. Put me down." He then sang, more like said, a version of "My Way" in tribute to George's independant nature.

Edited by Nutster

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Share this post


Link to post
Share on other sites
/dev/null

"Star Wars?  I can do Star Wars.  Put me down."  He then sang, more like said, a version of "My Way" in tribute to George's independant nature.

Well, there can be only one. No, wait, that's something different .... :whistle:

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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  

×