phew Posted October 31, 2007 Share Posted October 31, 2007 (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 October 31, 2007 by phew Link to comment Share on other sites More sharing options...
Kerros Posted October 31, 2007 Share Posted October 31, 2007 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. Link to comment Share on other sites More sharing options...
Blue_Drache Posted October 31, 2007 Share Posted October 31, 2007 (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 October 31, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
phew Posted October 31, 2007 Author Share Posted October 31, 2007 Kerros: Technically correct.You can recursively include your includes providing you have an#include-oncestatement 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now