Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: threads causing memory leak

by nikosv (Chaplain)
on Sep 11, 2010 at 17:00 UTC ( #859762=note: print w/ replies, xml ) Need Help??

in reply to threads causing memory leak

Free to wrong pool

I've been bitten by that as well when using Tk.It is an issue with reentrancy and/or thread safety.You might want to check this node out for more info Perl Tk and threads

You might also want to follow Corion's advise of sending a Window message back to the GUI thread since the call will be serialized in its message queue and thus won't break thread safety.

You might also run the app under Leakdiag and LDGraph which parses the data collected from Leakdiag and presents a nice diagram with the suspicious memory allocations so it might help you pinpointing the leak

Comment on Re: threads causing memory leak

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859762]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-11-29 13:32 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls