WoWInterface - View Single Post - Why frame never attaches to UIParent?
View Single Post
07-18-19, 03:23 PM   #6
A Warpwood Thunder Caller
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 98
You are right and I would agree the output of your prints does not make sense.
That is actually why I went ahead and guessed at the possibility that the use of the reserved word "self" as a parent table to the frame itself might be causing a problem. In other words, I understood the logic of your use of "self" and it is correct AFAIK, but there have been times where the WoW API seems to contradict Lua logic (maybe I just don't get it but... recently I got a C_Stack_Overflow on a semi-personal addon of mine (and I couldn't figure out why); come Blizzard's latest hotfixes and the error was gone!).

Getting back to your case, have you tried :SetParent(nil) before setting a new parent? I know, should not be needed, but...
  Reply With Quote