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.