Advertisement

Direct3DRM Release

Started by March 02, 2000 01:44 PM
0 comments, last by Angelus_ 25 years ago
I''m writing a program in Direct3DRM right now. And I created a bunch of meshes, lights, frames and stuff. The problem is when I want to clear the memory I''ve allocated for them, I use Release. But when I recreate all of those I can see the originals that I thought I already Released. Example: I created a sun and several planets surrounding it. I Release all the planet frames, meshes and lights when I''m done by using Release for each of them. Then, if I want to re-create that scene, I do the same initialization assuming that the originals have already been deleted and de-allocated from memory. But when I render everything, the original meshes and lights and frames are rendered as if they are still allocated and have not been deleted. If anybody could help me and tell why that is, it would be appreciated Thanks
Those who can, do. Those who can''t, laugh at those who can do.
Make sure you''re clearing the backbuffer between rendered frames. Also, check the return values from Release() functions and if they are not zero than the object still has a reference count and thus exists. Other than that it''s a weird problem a one I haven''t seen before and I''ve worked with retained mode before. Good luck

Jerry

This topic is closed to new replies.

Advertisement