Forum > FPvectorial
how to free TvVectorialDocument
eraaijma:
I am struggling freeing memory after the VectorDocument is loaded from Tmemorystream.
I have included a little project.
Once any 'test.jpg' is added and 'test.dxf', you will notice that jpegs tend not to use more memory and every DXF takes a new chunk of memory.
The question remains: How to free up memory?
zamtmn:
Try use heaptrc to locate memory leaks?
wp:
There were several memory leaks in the dxf reader. Please test r54901 of Lazarus trunk.
eraaijma:
@zamtm:
That would be a new skil for me. I thought the problem started in the dxfreader, which was confirmed by 'wp'. Dxfreader takes a while to understand. I cannot go in and poke around. Thanks anyway.
@wp:
Could you send a link please to r54901. I cannot find it. Would be interesting to see what is reported.
Thanks also.
wp:
@eraaijma: I don't understand what you mean...
The fix is included in the development version of Lazarus (trunk). So, if you use trunk and update your repository you will get it automatically. Alternatively, you may try to copy the dxfreader file from https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/fpvectorial/dxfvectorialreader.pas?view=co&root=lazarus to the folder components/fpvectorial of your lazarus installation (make a backup copy of the file first!) - but I cannot guarantee if this will work because there may be other changes between trunk and your version.
Alternatively, the fix will be backported to Lazarus 1.8. However, it is not yet contained in the current release candidate 1.8RC1, you must wait for 1.8RC2.
Navigation
[0] Message Index
[#] Next page