andyhartman / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

Texture2D.ToFile() memory leak #859

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The function Texture2D.ToFile() to save a texture to disk will not clean up 
after itself properly. Calling this function repeatedly (to save frames to the 
hard drives, for instance) will quickly use up all system memory, causing heavy 
thrashing and a massive performance hit.

This happens regardless of the image format chosen.

- Using January 2012 version (x64, net 2.0 SlimDX.dll)

Suspected to occur for many similar methods.

Original issue reported on code.google.com by thomas.b...@gmail.com on 16 Feb 2012 at 1:18

GoogleCodeExporter commented 8 years ago
I can't reproduce this. Additionally, I have no reason to believe it's true, 
since the method in question makes a simple call straight through to DirectX 
without any allocations in-between.

Your memory leak is probably elsewhere.

Original comment by Mike.Popoloski on 13 Mar 2012 at 2:37