in reply to perlapp and threads

Post a minimal, complete working example that displays problematic behaviour. Then your much more likely to get help.