[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: FEtching individual funmctions from modules
- From: Gergo Szakal <bastyaelvtars@...>
- Date: Tue, 31 Jul 2007 01:04:18 +0200
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.