View Single Post
04/25/14, 10:52 AM   #33
Divona
 
Divona's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 12
I have managed to reproduced "too many anchors processed" error with this code:

Lua Code:
  1. local LAM = LibStub("LibAddonMenu-1.0")
  2.  
  3. StressTest = {}
  4. local TotalRun = 470
  5.  
  6. local DROPDOWN_OPTIONS = {
  7.     "Option 1", "Option 2", "Option 3", "Option 4", "Option 5", "Option 6", "Option 7", "Option 8", "Option 9"
  8. }
  9.  
  10. function StressTest.Init(eventCode, addOnName)
  11.  
  12.     if (addOnName ~= "StressTest") then return end
  13.    
  14.     local panel = LAM:CreateControlPanel( "_stresstest", "Stress Test")
  15.    
  16.     for count = 1, TotalRun, 1 do
  17.         local headerName = "header" .. tostring(count)
  18.         local headerTitle = "Header " .. tostring(count)
  19.         local chkboxName = "checkbox" .. tostring(count)
  20.         local chkboxTitle = "Check Box " .. tostring(count)
  21.         local sliderName = "slider" .. tostring(count)
  22.         local sliderTitle = "Slider " .. tostring(count)
  23.         local dropdownName = "dropdown" .. tostring(count)
  24.         local dropdownTitle = "Drop Down " .. tostring(count)
  25.         LAM:AddHeader(panel, headerName, headerTitle)
  26.         LAM:AddCheckbox(panel, chkboxName, chkboxTitle, "", function() return true end, function() local value = true end)
  27.         LAM:AddSlider(panel, sliderName, sliderTitle, "", 0, 100, 1, function() return 50 end, function(value) local bin = value end)
  28.         LAM:AddDropdown(panel, dropdownName, dropdownTitle, "", DROPDOWN_OPTIONS, function() return 1 end, function(value) local bin = value end)
  29.     end
  30.    
  31. end
  32.  
  33. EVENT_MANAGER:RegisterForEvent("StressTest", EVENT_ADD_ON_LOADED, StressTest.Init)

TotalRun under 450 does not created the error. There's no other AddOns enable when I run this Stress Test. I'm not sure if LibAddonMenu is causing it, or could there be some kind of limit set by the game client? As there're more people using lots of AddOns at the same time, this error prone to happen, and should be some advise or some work around if they want to keep install the AddOns that ever exist.
  Reply With Quote