Memory Problems w/My DX game

This is a discussion on Memory Problems w/My DX game within the Game Programming forums, part of the General Programming Boards category; Hi all! I'm having some memory (or at least that's what I think it is) problems with my game. So ...

  1. #1
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Memory Problems w/My DX game

    Hi all! I'm having some memory (or at least that's what I think it is) problems with my game. So far everything is working well. I have scrolling down and have started making levels. Using psuedo-code I will show you the general-ness of my code

    Code:
    for (int c=0;c<5;c++)
    {
    //All my filename code like strcat(message,".txt") at the end etc
    Level[c].Init(filename);
    }
    Anyway, it worked for a while, but I only get the first level loaded. I'm using OutputDebugString() to check everything. If anyone wants more info, I'll be glad.

    I'll admit I'm not the best at memory manegment, what to make a pointer, etc.
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  2. #2
    using namespace Trooper; St0rmTroop3er's Avatar
    Join Date
    Sep 2003
    Posts
    77
    hmmm Can you give me what the error is?
    Your mom is like a struct, she has no class

    How many C programmers does it take to screw in a light bulb? One to do it, 99 to tell him how to do it faster.

  3. #3
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    No error, but It doesn't load my other files to them.

    I change my main characters level int, and everything goes screwy

    Code:
    Tansai.SetLevel(1);
    Then when it TRIES to load the level, I get Blt errors
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question regarding Memory Leak
    By clegs in forum C++ Programming
    Replies: 29
    Last Post: 12-07-2007, 01:57 AM
  2. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 04:18 PM
  3. Memory Game!
    By koryan84 in forum C++ Programming
    Replies: 1
    Last Post: 03-06-2002, 02:58 AM
  4. Ascii conversion problems with dynamic memory
    By Butters in forum C++ Programming
    Replies: 2
    Last Post: 01-29-2002, 12:22 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21