Memory Problems w/My DX game [Archive] - C Board

PDA

View Full Version : Memory Problems w/My DX game


Stan100
10-02-2003, 06:13 PM
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


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.

St0rmTroop3er
10-02-2003, 07:15 PM
hmmm Can you give me what the error is?

Stan100
10-03-2003, 01:52 PM
No error, but It doesn't load my other files to them.

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


Tansai.SetLevel(1);


Then when it TRIES to load the level, I get Blt errors