Memory leak
Posted: Wed Jul 18, 2007 12:44 am
From a beginners point:
I have difficulties with access errors and memory leaks when closing application with TRV (ver9) + table + dynamic generated images.
Images are created on demand like:
Timage(picarray):=Timage.create ....
picarray.loadfromfile(filelist).....
table.cells[x,y].addpicturex(picarray,......)
printthisRVdocument()
rv.rvdata.clear; //should delete all items and free memory
setlength(picarray,0);
Now, when closing the application memcheck will show a lot of errors. They disappear of I do not generate rv documents. Any ideas how to make this water proof and exclude memory leak errors?
I have difficulties with access errors and memory leaks when closing application with TRV (ver9) + table + dynamic generated images.
Images are created on demand like:
Timage(picarray):=Timage.create ....
picarray.loadfromfile(filelist).....
table.cells[x,y].addpicturex(picarray,......)
printthisRVdocument()
rv.rvdata.clear; //should delete all items and free memory
setlength(picarray,0);
Now, when closing the application memcheck will show a lot of errors. They disappear of I do not generate rv documents. Any ideas how to make this water proof and exclude memory leak errors?