Solved

C++ visual 6.0 Exception

Posted on 2007-12-03
3
211 Views
Last Modified: 2013-12-14
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
Comment
Question by:lcor
  • 2
3 Comments
 

Author Comment

by:lcor
ID: 20397005
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
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20402107
Could you post more code? where the array members are initialized? where are accessed? which error messages?
0
 

Author Comment

by:lcor
ID: 20492820
It turned out to be  a bug in the logic....I'll award for the effort.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

    Over the past few years, small business and home owners have become so dependent on internet that a need for redundancy has arisen.    What happens when your small business or home / home office loses its internet connection?  The results c…
Sometimes you have to pull out old tricks to get a new firewall to work… While we were installing a new Sonicwall at a customers site we found that sites they were able to visit before were not working.  It seemed random and we could not understa…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question