I have an array of classes. I get really weird behavior. It on occassion will throw an exception when it tries to access the 0'th member ot the array of classes. I have to use Visual CC++ 6,0. I tried to step through the code and when it goes to access the 0th member, it tries to look for a file vc60.pdb. I can't seem to find the file on my Visual C++ installation disk.
The array of classes is defined in the accompaning header file that goes with the C++ file that calls the member functions. It looks something like this:
ClassCallsMyClass.h
--------------------------
----
ClassCallsMyClass{
protected:
MyClass x[100];
};
I don't delete at the end MyClass since it's allocated. Plus, the exception seems to always happen at the start of ClassCallsMyClas.
Start Free Trial