AB4D Forum
Memory leak on try to open unsupported FBX - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9)
+--- Thread: Memory leak on try to open unsupported FBX (/showthread.php?tid=4407)



Memory leak on try to open unsupported FBX - Alex3d - 08-01-2023

Hello
There's a problem with memory leak when I on try to open unsupported FBX (versions below fbx 2011)
Currently I am using a custom method to detect the fbx version before trying to read a file using powertoys library.


RE: Memory leak on try to open unsupported FBX - abenedik - 08-14-2023

I was not able to reproduce that problem. 

Using the latest version of Ab3d.PowerToys (11.0) and native Assimp library that came with that version (v5.2.5 commit hash 0dcfe2f; note that version has not changed for almost a year) seems to clear the resources - see the process memory screenshot after trying to load an old fbx file a few times:
   

Do you call the assimpWpfImporter.Dispose method when import exception happens?