• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

C++ visual 6.0 Exception

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.
0
lcor
Asked:
lcor
  • 2
1 Solution
 
lcorAuthor Commented:
Also, I checked to make sure there was data in the 0th member of the MyClass and the Visual C++ 6.0 debugger showed there was.
0
 
Jaime OlivaresSoftware ArchitectCommented:
Could you post more code? where the array members are initialized? where are accessed? which error messages?
0
 
lcorAuthor Commented:
It turned out to be  a bug in the logic....I'll award for the effort.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now