Originally Posted by Animor
I will put the relevant code here, perhaps one of the experts will point me to the problem just from reading it.
|
There's nothing substantially wrong with your code as far as I can see. I'd recommend still asking people if they get the error
with only your addon enabled -- that's the only way to guarantee that the cause of the issue is confined to
your code (and FrameXML).
If you felt like stabbing at something at random, try delaying the initialization of your dropdown until your configuration panel actually needs to be shown (i.e. do the UIDropDownMenu_Initialize() call in the panel's OnShow, not the dropdown's OnLoad) -- if the issue actually stems from your use of the dropdown, this'll make it go away if the user doesn't open your configuration panel, which is probably a reasonable workaround.
Originally Posted by Dargen
|
Thank you; that is at least interesting to look at. It's unfortunate that the topic ended with someone blaming UIDROPDOWNMENU_MAXBUTTONS, which is the incorrect conclusion in that case -- we'll never get this fixed if we keep crying wolf at the wrong things.
Curiously, the issue occurs when you create a dropdown with 8 entries before CUFProfiles loads, even if UIDROPDOWNMENU_MAXBUTTONS >= 8 at the time of creation, isn't modified, and remains secure. This warrants a closer look, I think.