Sign in to follow this  
Followers 0
phew

#include depth exceeded

4 posts in this topic

#1 ·  Posted (edited)

Line 1 (File "C:\Dolumente und Einstellungen\phew\Desktop\test\test.au3"):

#include <vars.au3>

Error: #include depth exceeded. Make sure there are no recursive includes.

someone can explain to me what this error exactly means?

i did not include anything twice so it must be smtn else

EDIT:

i think i know the problem but i have no clue how to fix it:

in test.au3 i need to include vars.au3, because i need a variable from there. same for vars.au3, it needs a variable from test.au3.

but when i do "#include test.au3" in vars.au3 and "#include vars.au3" in test.au3, i receive this error. already tried with "#include-once ..." didn't work either, susggestions?

Edited by phew

Share this post


Link to post
Share on other sites



It sounds like you are trying to include vars in test, and test in vars. That is not allowed, that why you are getting an error saying "no recursive includes."

you will just have to include everything that you need into one script and go from there.


Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Kerros: Technically correct.

You can recursively include your includes providing you have an

#include-once

statement on the top of the include files.

Edit:

The way you describe it in the original post is confusing to a human, much less the program.

If vars.au3 is a collection of variables, why are you trying to include your program into it?

What you need, sir, is a rewrite and a rethink.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Kerros: Technically correct.

You can recursively include your includes providing you have an

#include-once

statement on the top of the include files.

Edit:

The way you describe it in the original post is confusing to a human, much less the program.

If vars.au3 is a collection of variables, why are you trying to include your program into it?

What you need, sir, is a rewrite and a rethink.

yep already done. thanks Kerros, helped

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