View Single Post
10-11-20, 04:17 AM   #10
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Hi all,

today I go in a m+ and suddendly I got this error:

Lua Code:
  1. 2x [ADDON_ACTION_BLOCKED] AddOn 'gmUnitframes' tried to call the protected function 'Boss2TargetFrame:Hide()'.
  2. [string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
  3. [string "=[C]"]: in function `Hide'
  4. [string "@FrameXML\TargetFrame.lua"]:112: in function `TargetFrame_Update'
  5. [string "@FrameXML\TargetFrame.lua"]:178: in function `OnEvent'
  6. [string "@FrameXML\UnitFrame.lua"]:917: in function <FrameXML\UnitFrame.lua:915>

The only part of the code where I touch the BossX settings is this:

Lua Code:
  1. for i = 1, 5 do
  2.             local f = _G["Boss"..i.."TargetFrame"]
  3.             f:SetParent(UIParent)
  4.         end
  5.        
  6.         for i = 2, 5 do
  7.             _G["Boss"..i.."TargetFrame"]:SetPoint("TOPLEFT", _G["Boss"..(i-1).."TargetFrame"], "BOTTOMLEFT", 0, 0)
  8.         end

But it should not taint I think.

Any idea ?

I attach the whole addon code (core.lua) to help.

Thanks.
Attached Files
File Type: lua core.lua (10.8 KB, 190 views)
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote