Archived

This topic is now archived and is closed to further replies.

Beta 8 and ESC key

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

Anything missing?

//Clear memory
PR_FreeCamera (camera);
PR_DeleteAllTextures ();
PR_DeleteAllMaterials ();
PR_FreeParticles ();
PR_FreeEmitters ();
CloseCharacters();
//Shutdown
uninstallkbd();
PR_ShutDown ();

Thanks in advance for helping!
Petrovski

Share this post


Link to post
Share on other sites
Thanks Rich

Now I see why you are asking for global delete objects & entities! I had assumed PR_Shutdown did this!

Chris, what have you got to say on this?

Thanks in advance for helping!
Petrovski

Edited by - Petrovski on August 6, 2001 4:13:46 AM

Edited by - Petrovski on August 6, 2001 4:14:23 AM

Share this post


Link to post
Share on other sites
Do you also have to delete instances of objects (EntityNode''s) created through OM_AddInstance()? They don''t seem to cause memory leaks if not deleted at exit.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
LS_FreeLevel will free all of the entities and objects for you.

DX8 doesn''t like it when you exit a program and don''t free the interfaces. After a few times of not cleaning up it decides to reboot. I am thinking of tracking every DX interface in a linked list and making sure the reference counts are 0 when you release them. It could be used to clean up automatically but it would be better used as a tool for debugging to find where the interface leaks are in your application.


Share this post


Link to post
Share on other sites