Solved

C++ visual 6.0 Exception

Posted on 2007-12-03
3
201 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
This solves the problem of diagnosing why an internet connection is no longer working. It also helps identify the likely cause of the lost connection if the procedure fails to re-establish your internet connection. It helps to pinpoint the likely co…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now