Jump to content
  • Advertisement

Archived

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

Peter Cunliffe

Beta 8 and ESC key

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

Occasionally when I press ESC to quit my project, my PC reboots! This doesn''t happen with earlier betas. I''m using Radeon and WIN2K. Thanks in advance for helping! Petrovski

Share this post


Link to post
Share on other sites
Advertisement
Sounds like a memory leak. Make sure you are unloading all of your entities and objects, and also make sure you include the uninstallkb command.
-Rich

Share this post


Link to post
Share on other sites
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

  • 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!