View Single Post
05/13/14, 12:01 AM   #64
Klingo
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 16
I also received this message from time to time during my addon development. Interestingly it did not show up after every /reloadui but after most, although between two changes there might not have been any changes in the UI at all.

Then I had the idea to simply postpone the creation of the UI by just one second to see what effect this would have. Interestingly, since I did that I never experienced the "Too Many Anchors processed" anymore at all. I'm not fully sure yet whether this really is related to this, but maybe this warning only happens if too many anchors are processed at the same time?

Lua Code:
  1. function Settings.CreateOptions()
  2.     -- first create the panel with LAM
  3.     local panel = LAM:CreateControlPanel("MyAddonPanel", "MyAddonTitle")
  4.    
  5.     -- then delay the actual creation of the option items by 1 second
  6.     zo_callLater(function() Settings.CreateOptionItems(panel) end, 1000)
  7. end
  8.  
  9. function Settings.CreateOptionItems(panel)
  10.     -- add all objects to the panel
  11. end
  Reply With Quote