Tis is probably a REALLY easy question, but its 2:00 AM and I refuse to goto bed (you all being coders, im sure understand
)
I have this (not exactly, but you get the point):
class MYCLASS {
public:
MYCLASS2 *MyClass2;
void Init();
};
void MYCLASS::Init() {
MyClass2 = new MYCLASS2[SomeNumber];
...
delete MyClass2;
}
then elsewhere their is:
void APPLICATION::Init() {
MYCLASS Class1, Class2;
Class1.Init();
Class2.Init();
}
After i call the init() method of Class1, its al working fine. But when i call the init of the second one, it craps out. i made it so that class2.init was called first and same.
i've also been deleting all my pointers like a good coder too.
again its very late for me and i know its something stupid but bare with me.
any help would be good.
Edited by - Psionic on November 10, 2001 11:09:37 AM
"This is stupid. I can't believe this! Ok, this time, there really IS a bug in the compiler."... 20 mins pass ..."I'M AN IDIOT!!!"