• Advertisement
Sign in to follow this  

D3DXSaveMeshHierarchyToFile causes memory leak

This topic is 2039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Right after i load my model with D3DXLoadMeshHierarchyFromX function i use:

hr = D3DXSaveMeshHierarchyToFile("test.x", D3DXF_FILEFORMAT_BINARY, root, animControler, 0);
MessageBox(0, TEXT("D3DXSaveMeshHierarchyToFile() failed"), 0, 0);

File is saved properly but when i exit app it throws me this message:

D3DX: MEMORY LEAKS DETECTED: 680 allocations unfreed (43520 bytes)

But if i comment above function there is no memory leak report in output window.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement