Thread: DropDown Menus
View Single Post
06-12-14, 12:13 AM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by TULOA View Post
And menuList wasnt defined by me through it. Its something you pass to the EasyMenu function as a table that should be named menuList in teh internal functions and yet manages to lose it after its run. If it was a code error it would error on login.
#1 - The default error display cannot show you errors that occur during the initial loading process. If you're not using BugSack or Swatter, then "no errors" is quite possibly wrong.

#2 - A scoping problem does not necessarily mean you have a syntax error. You are allowed to refer to a variable that isn't defined -- the end result is the same as if you'd explicitly defined the variable with a value of nil -- and you are allowed to pass nil to functions.

#3 - The error points to whichever line in Blizzard's code tries to do something with the value you passed into the function. If the value is nil at that point, it was also nil (or some other non-table value) when you passed it. This, again, points to a scoping issue within your code, or a misnamed variable.

#4 - Four years of college and you're still using the term "code error" and don't understand how a stack trace works? Really? I tried to give you a second chance here, despite the fact that your previous posts have made it quite clear that you don't really want help. You're always right, you never make mistakes, you know everything, and every line of code you write is perfect just the way it is. Carry on.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.