Home Forums Programming Quick DirectX question

Viewing 2 reply threads
  • Author
    Posts
    • #5864
      Anonymous
      Inactive

      <Dr Nick voice> Hi everybody!

      :)

      Ok this is a quick question for those of you who have used DX before, so i’m just after getting round to implementing the music and sound aspects of the game I’m currently working on- and I’m using DirectMusic and DirectSound for both these things respectively. Now I’ve been following the DirectX SDK documention regarding cleaning up for these objects and am using functions such as Release and Unload etc. on the various DX objects to clean up after themselves.

      I’m just wondering is there anything else I have to do after this in order to properly clean up- i.e do I have to use a delete statement on them also, or is the memory deallocation managed by the system ? It seems a little suspect that (for instance in the case of DirectMusic) that I am creating this COM object and yet nowhere in the code is there an actual statement to free up the memory used by this object. Maybe it is done by the system anyhow and I don’t have to worry about, anyone know about this ? I don’t want any memory leaks in my code ! Memory leaks suck big time! :o

      Thanks for your help.

    • #35715
      Anonymous
      Inactive

      No, you just have to release and set them to null.

    • #35722
      Anonymous
      Inactive

      Ah thats grand so, cheers Pete!

Viewing 2 reply threads
  • The forum ‘Programming’ is closed to new topics and replies.