lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


OK, the problem was:

I had the mastger script that required modules. In a module I had the
following code:

function Event (...)
	HandleEvent ("Event", ...)
end

In this, there was no module "foo" declaration.
However, in other modules when I called the global Event() function, it
led to a stack overflow.

if Event then Event() end

After renaming the function and calling HandleEvent() directly the stack
overflows are gone:

function SomeEvent(...)
	HandleEvent("Event",...)
end

I think I was calling the function itself from the function and that
led to a recursion and a stack overflow. Either way, it is fixed and
thanks for the hints.