ESO Lua Interpreter - Infinite loop undetected
Hi,
I just see when coding that the eso client lua interpreter doesn't detect an infinite loop of a functio ncalling itself and run the addon. There is no check before execution ? |
Code:
local function OnAddOnLoaded(eventCode, addonName) If that isn't what you need then I have no idea what you mean. Other then yes Lua, interpreter, and infinite loop I get that, but not sure what you mean. |
No, there is no check.
lua will do what you tell it to do and ESO will freeze and crash if your loops take too long or are infinite :p You need to handle that with some variables, like a maxLoops number or a boolean check or similar, yourself. Best you can do is use an IDE which shows you recursive calls of your functions, leaking global variables etc. so you can check that yourself before doing the next /reloadui ingame. https://www.esoui.com/forums/showthread.php?t=9875 |
Quote:
Quote:
Dear moderation : Please mark this thread a resolved |
Quote:
It's too much work to edit all threads and change their name to be honest (imho). Only the "Wishlist" or "Bug reports" threads about the ESOUI website issues and ZOs bugs get that extra love :-) |
Quote:
|
All times are GMT -6. The time now is 09:38 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI