Sign in to follow this  
Followers 0
amakrkr

stack overflow >.<

5 posts in this topic

hi all,

i am writing a small bot for an online game.

It works fine but in a couple of hours i am getting this annoying "stack over flow error" that crashes my script.

I read about it on this forum that error happens when u have functions calling it self many times, and thats exactly what i am doing

any help?

Share this post


Link to post
Share on other sites



Yeah there's a really simple way to fix that. Stop doing that. Put the function call in a while loop, it's bad practice and you should NEVER have a function calling itself.

Share this post


Link to post
Share on other sites

amakrkr

Possible memory leaking? Check in your script unclosed handles, e. g.

FileOpen()
DllOpen()

etc...

Share this post


Link to post
Share on other sites

Yeah there's a really simple way to fix that. Stop doing that. Put the function call in a while loop, it's bad practice and you should NEVER have a function calling itself.

I wouldn't say "NEVER" because when dealing with references function calling itself is sometimes the only way to reach the end of the sequence.

But I'm sure that's not the case here.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Yeah there's a really simple way to fix that. Stop doing that. Put the function call in a while loop, it's bad practice and you should NEVER have a function calling itself.

Ever heard of recursion? Not so wierd, when done right afcource.

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  
Followers 0