hi all!

I have written the XS-module, which processes the certain type of a picture (this is a simple image filter, like Gaussian blur in Gimp or Photoshop). But for the unknown reason the size of the memory used for this module, grows in memory of a computer at his cyclic use. What I incorrectly do?

XS-file (created by command "h2xs -A -n Smai"):
http://genphys.phys.msu.ru/~dmitriyk/Smai.xs
perl-script:
http://genphys.phys.msu.ru/~dmitriyk/x.pl
My image file:
http://genphys.phys.msu.ru/~dmitriyk/test.jpg

(run "perl x.pl file.jpg 1" and then press button 'Repaint...')

If I reread a picture without use of the module the size of process remains to constants and do not change. If I start to use the module uncontrollable growth of the size of process in operative memory begins. That eventually leads to to a stop of a computer.

Thanks for help!

Dmitriy.

p.s. i'm sorry for my bad english

Reply via email to