in reply to Out of memory using chart::clicker
For some reason, I believe your sub mysub{} closure isn't cleaning up all those objects, as you would expect.
In my experience with other graphic modules, this can be avoided by creating only 1 set of global objects, and as you go thru your loops, you clean out and reuse the global object. This prevents the memory problem ... reuse your objects. See perldoc -q clear for how to clear a package. MJD's example code cleans out a package for reuse.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Out of memory using chart::clicker
by Peterpion (Acolyte) on Feb 23, 2014 at 11:25 UTC |