Thank you Dmitri. Dmitri Tikhonov wrote:
> I think that your interpreter is having problems freeing memory associated > with closures. I ran into this before, and what I had to do is to patch > POE so that POE::Wheel::Run accepts arguments. Check it out here: I looked at your patch and played around some hours, but I can't hunt down the problem anyway. I've not a glance of an idea ... :( > In some cases in my POE environment (but it does not mean it has to do > with POE), I had to explicitly undef lexical variables used in closures > after closures were done executing. I'm not aware of using closures in adjacency of the creation of the Run-Wheel. The $prog variable in my example code is defined in the same scope as 'my $prog="foo.sh"' or something like this. (I've stripped the declaration in my example by mistake.) Is there something I overlooked? > Good luck, it can take you a while to find all the leaks, but it can be > done. I want to believe! ;-) Could you help me, please? Sebastian.
