[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: destroy a variable
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 29 Apr 2007 21:30:14 -0300
> If I repeatedly execute the string "a=math.random(1,20)" in my embedded
> interpreter, when I stop the host I got a crash with a lot of glibc
Perhaps you're overflowing the stack? It shouldn't happen. Can you post
code? A minimal example would help.
> If I replace the code by "math.random(1,20)" no problems occurs.
Overflowing the stack does not explain this.
> Is there any way to destroy variables used in an script when I dont need
> them anymore?
Set them to nil, but you shouldn't have to do that.