Jump to content
  • Advertisement
Sign in to follow this  
mancubit

[assimp] always getting memory leaks when using materials

This topic is 2804 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

I am experiencing a little problem with assimp.

I am trying to load some .obj models. This basically works perfectly as long as there is no .mtl file available, as this always causes memory leaks. Even something like


const aiScene* scene = aiImportFile(_meshFile.c_str(), 0);
aiReleaseImport(scene);




already causes memory leaks when a .mtl file is available to the loaded object. I have tried pretty much everything i can think of, but cant get rid of them.

the .mtl file contains the following:


newmtl lambert2SG
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd brick.jpg
Ni 1.00




and the memory-leak is reported by this


Detected memory leaks!
Dumping objects ->
{1934} normal block at 0x06580068, 7248 bytes long.
Data: < lambert2SG > 0A 00 00 00 6C 61 6D 62 65 72 74 32 53 47 00 1B
Object dump complete.




Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
Keep bumping it mate you'll get an answer sooner or later. Maybe try posting it in the graphics forum? This topic sounds a bit beyond beginner level to me boyo ;o)

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!