• Advertisement

Archived

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

Non-Deleting Surfacemophones

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

How bad is it if I dont free/delete/release my COM objects and surfaces? Doesn''t the OS keep track of this stuff so I can be extremely lazy or should I get up off my booty and start using good programming techniques? Senses

Share this post


Link to post
Share on other sites
Advertisement
I''d say "get up off your booty and start using good programming techniques"...

The OS and DirectX will attempt to clean up any memory that *they* own when your process exits.

Unfortunately this doesn''t always include memory which the *device driver* (the stuff written by the manufacturer of your graphics/input/sound/etc hardware) owns!

Sometimes you won''t have any problems.

Sometimes not releasing your objects will slowly chew up memory since the driver isn''t releasing it properly ending in a crash.

Sometimes this will make the next application which uses DirectX fail/do weird stuff.

..etc..

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • Advertisement