Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C++ visual 6.0 Exception

Posted on 2007-12-03
3
Medium Priority
?
222 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 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

885 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