Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

D3DXSaveMeshHierarchyToFile causes memory leak

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 belfegor   Members   

2833
Like
0Likes
Like

Posted 23 June 2012 - 03:26 AM

Right after i load my model with D3DXLoadMeshHierarchyFromX function i use:
hr = D3DXSaveMeshHierarchyToFile("test.x", D3DXF_FILEFORMAT_BINARY, root, animControler, 0);
    if(FAILED(hr))
    {
        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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.